字符逆序 (C++代码) 摘要:解题思路:字符串简单的输入输出。注意事项:1.注意输入结尾的时候按回车会多一个“字符”2.注意不要让指针错误溢出,即访问到肥规划出来的字符数组大小的位置参考代码:#include<iostream>#…… 题解列表 2019年02月19日 3 点赞 0 评论 726 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题10.2 (C语言代码) 摘要:解题思路:注意事项: 1、函数strcmp(char *a, char *b)的使用。 2、#include<string.h>头文件。参考代码:#include<st…… 题解列表 2019年02月19日 0 点赞 0 评论 1092 浏览 评分:6.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 评论 536 浏览 评分: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 评论 766 浏览 评分: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 评论 841 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> // 个人认为最好理解的大数加法#include <string.h>int main(){ char a[1000], b[10…… 题解列表 2019年02月19日 0 点赞 0 评论 928 浏览 评分:0.0
蓝桥杯算法训练VIP-调和数列问题 (C语言代码) 摘要:解题思路:循环加法注意事项:实数类型注意数据细节就行了参考代码:#include <stdio.h>int main(){ double x, t, s; int i, j, ok, a; while…… 题解列表 2019年02月19日 0 点赞 0 评论 1084 浏览 评分:0.0
敲七游戏 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int xt(int x); // 判断数据中是否含7int main(){ int n, i, t = 0; scanf("%d",…… 题解列表 2019年02月19日 0 点赞 0 评论 1334 浏览 评分:0.0
蓝桥杯算法提高VIP-Pascal三角 (C语言代码)代码千万行,注释第一行 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n,t; scanf("%d",&n); t=n; in…… 题解列表 2019年02月19日 0 点赞 0 评论 1499 浏览 评分:7.0
蓝桥杯算法提高VIP-特殊的质数肋骨 (C语言代码)打表 摘要:解题思路: 先用暴力的方法把结果全部跑出来,然后打表输出就可以了,其它方法没想到QWQ参考代码:#include <stdio.h> int main(){ int a[9][17] = {…… 题解列表 2019年02月19日 0 点赞 0 评论 1001 浏览 评分:0.0