敲七游戏 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int xt(int x); // 判断数据中是否含7int main(){ int n, i, t = 0; scanf("%d",…… 题解列表 2019年02月19日 0 点赞 0 评论 1263 浏览 评分:0.0
蓝桥杯算法训练VIP-调和数列问题 (C语言代码) 摘要:解题思路:循环加法注意事项:实数类型注意数据细节就行了参考代码:#include <stdio.h>int main(){ double x, t, s; int i, j, ok, a; while…… 题解列表 2019年02月19日 0 点赞 0 评论 1021 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> // 个人认为最好理解的大数加法#include <string.h>int main(){ char a[1000], b[10…… 题解列表 2019年02月19日 0 点赞 0 评论 884 浏览 评分:0.0
杨辉三角 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i, j, k, n, a[100][100]; while (scanf("%d", &n) != …… 题解列表 2019年02月19日 0 点赞 0 评论 782 浏览 评分:0.0
C语言训练-大、小写问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <ctype.h>int main(){ char a[100]; int i; gets(a); for (i =…… 题解列表 2019年02月19日 0 点赞 0 评论 712 浏览 评分:0.0
用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int xt(int x);int main(){ int i, n; scanf("%d", &n…… 题解列表 2019年02月19日 0 点赞 0 评论 506 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.2 (C语言代码) 摘要:解题思路:注意事项: 1、函数strcmp(char *a, char *b)的使用。 2、#include<string.h>头文件。参考代码:#include<st…… 题解列表 2019年02月19日 0 点赞 0 评论 1048 浏览 评分:6.0
字符逆序 (C++代码) 摘要:解题思路:字符串简单的输入输出。注意事项:1.注意输入结尾的时候按回车会多一个“字符”2.注意不要让指针错误溢出,即访问到肥规划出来的字符数组大小的位置参考代码:#include<iostream>#…… 题解列表 2019年02月19日 3 点赞 0 评论 701 浏览 评分:8.0
核电站问题 (C语言代码) 摘要:解题思路:a[i]=a[i-1]*2-a[i-4]注意事项:参考代码:#include<stdio.h>int main(){int a[41],i,y;while(scanf("%d",&y)!= …… 题解列表 2019年02月19日 0 点赞 0 评论 1086 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.2 (C语言代码)冒泡选择排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int vals[10]; int i, j, t; for (i = 0; i < …… 题解列表 2019年02月19日 0 点赞 0 评论 994 浏览 评分:0.0