蓝桥杯算法提高VIP-十进制数转八进制数 (C语言代码) 摘要:解题思路:任意进制M转化为10进制,10进制转化为进制N (进制2-16)参考代码:#include "stdafx.h"#include "string.h"#define M 10#defin…… 题解列表 2018年10月29日 0 点赞 0 评论 1261 浏览 评分:0.0
蓝桥杯算法提高VIP-十进制数转八进制数 (C语言代码) 摘要:// 进制为M数值n → 进制N后的结果 (2~16)#include "stdafx.h"#include "string.h"#define M 10#define N 8int stoi(ch…… 题解列表 2018年10月29日 0 点赞 0 评论 992 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:调用函数不要出错参考代码:#include<stdio.h> #include<math.h> int main() { int x; float f=0; sc…… 题解列表 2018年10月29日 0 点赞 0 评论 668 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:一定要注意示例输出的样子就是要求输出的样子,如c=0->f=32参考代码:#include<stdio.h> int ctof(int c) { return 3…… 题解列表 2018年10月29日 0 点赞 0 评论 662 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:1、建立数组输入元素2、比较绝对值大小,做行列标记,记住绝对值最大元素的行列下表注意事项:1、变量一定要初始化2、max赋值的地方千万不要弄错了,不然输出一定不对参考代码:#include<…… 题解列表 2018年10月29日 1 点赞 0 评论 532 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:不用设立for循环的截止条件,在循环中控制就好参考代码:#include<stdio.h> int main() { int a[80]; int i,y=0,t=0,…… 题解列表 2018年10月29日 0 点赞 0 评论 603 浏览 评分:0.0
蓝桥杯算法提高VIP-最长单词 (C语言代码) 摘要:#include "stdafx.h"#include "string.h"int main(){ int i,j=0, c1 = 0,c2=0; char str[100000] = { 0 }, …… 题解列表 2018年10月29日 1 点赞 0 评论 485 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:注意返回值定义为double型,不然虽然结果正确,但是通过不了参考代码:#include<stdio.h> double fact(int k) { int i; …… 题解列表 2018年10月29日 0 点赞 0 评论 889 浏览 评分:0.0
Hello, world! (C++代码) 摘要:解题思路:已AC注意事项:输入和输出不在同一个缓冲区!参考代码:#include <cstdio>using namespace std;int main(){ int asc; …… 题解列表 2018年10月29日 0 点赞 0 评论 560 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.3 (C语言代码) 摘要:解题思路:素数只能被1和本身整除注意事项:1不是素数参考代码:#include <stdio.h>int main(){ int num,count=0; scanf("%d",&num); for …… 题解列表 2018年10月29日 0 点赞 0 评论 459 浏览 评分:0.0