C二级辅导-求偶数和 (C语言代码)(不用数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a; int n; int sum=0; s…… 题解列表 2018年06月18日 2 点赞 1 评论 565 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:5个char变量,声明时不要赋值,用scanf输入之后,再在用printf输出时实现变形。注意事项:不要忘记加分号(;),不要打错字,就这样吧!参考代码:(前面省略,这里只给出main以后的…… 题解列表 2018年06月18日 0 点赞 0 评论 958 浏览 评分:0.0
P1019 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<algorithm> using namespace std; const…… 题解列表 2018年06月18日 0 点赞 0 评论 957 浏览 评分:0.0
Tom数 (C++代码) 摘要:#include <iostream> #include <cmath> using namespace std; long long n; int main() { whil…… 题解列表 2018年06月21日 7 点赞 0 评论 1600 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:利用sprintf函数来转换成字符串注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int a; char …… 题解列表 2018年06月19日 0 点赞 0 评论 816 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:直接利用字符串接收,用strlen()函数输出位数注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){char s[6]={0…… 题解列表 2018年06月19日 0 点赞 0 评论 983 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,s=0,r=0; scanf("%d%d", &a, &b); s=a*b; w…… 题解列表 2018年06月19日 0 点赞 0 评论 664 浏览 评分:0.0
程序员的表白 (C语言代码) 摘要:解题思路:根据u字格式 利用for循环扫描打印 将u 分为两部分 竖线部分 和横线部分 分别打印 竖线部分有n行 每行有n+2 列 用两个循环嵌套即可注意事项:参考代码:#include<stdio.…… 题解列表 2018年06月19日 1 点赞 0 评论 1474 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.11 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=1005; int a[M]; int main() {…… 题解列表 2018年06月19日 0 点赞 0 评论 1497 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); a > b ? a > …… 题解列表 2018年06月20日 0 点赞 0 评论 1182 浏览 评分:0.0