A+B for Input-Output Practice (VI) (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>int main(){int n,a,sum=0; while(scanf("%d",&n)!=EOF){ int i=0; wh…… 题解列表 2019年04月17日 0 点赞 0 评论 692 浏览 评分:2.0
C二级辅导-进制转换 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; scanf("%d",&n); printf(…… 题解列表 2019年04月17日 0 点赞 0 评论 789 浏览 评分:0.0
易错点 (C++代码) 摘要:解题思路:注意事项:直接说注意实现 ,百分之五十错误应该都是 m = 1的情况 ,要注意 素数是从2开始的。没什么说的,贴代码了参考代码:#include<bits/stdc++.h>using na…… 题解列表 2019年04月17日 0 点赞 0 评论 881 浏览 评分:0.0
[编程入门]结构体之成绩记录 (C++代码) 摘要:解题思路: 看题注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct studen{ char xuehao[10]; char…… 题解列表 2019年04月17日 0 点赞 0 评论 813 浏览 评分:0.0
[编程入门]结构体之时间设计 (C++代码) 摘要:解题思路: 大家都懂注意事项: 应该错误都会犯在月份这里 ,5月15日应该知识算前面四月,多理解这点就ok了参考代码:#include<bits/stdc++.h>using namesp…… 题解列表 2019年04月17日 0 点赞 0 评论 740 浏览 评分:0.0
[编程入门]自定义函数之字符串拷贝 (C语言代码) 摘要:解题思路: 字符串拷贝其实是可以直接改变循环输出就ok 注意事项: 循环的开始的值参考代码:#include<stdio.h>#include<malloc.h> int main(…… 题解列表 2019年04月17日 0 点赞 0 评论 509 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int isprime(int x){ int i; if(x < 2) return 0; for(i…… 题解列表 2019年04月17日 0 点赞 0 评论 1146 浏览 评分:0.0
P1001 (C语言代码) 摘要:解题思路:先对这个数组排序,再根据下标的位置关系找到第k大和第k小的数,最后对其差值判断是否为素数。注意事项:1.容易忽略当差值小于2的情况,素数是从大于二开始。2.判断是否为素数的时候可能使代码运行…… 题解列表 2019年04月17日 1 点赞 0 评论 1024 浏览 评分:7.3
[编程入门]自定义函数之数字后移 (C++代码) 摘要:解题思路: 改变输入输出就可以了 注意事项: for循环的起始要把握好参考代码:#include<bits/stdc++.h>using namespace std;int main(){…… 题解列表 2019年04月17日 0 点赞 0 评论 803 浏览 评分:0.0
[编程入门]自定义函数之字符提取 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fun(char a[1000],char b[1000]){ int j,n; for(j=0;a[j]!=&#…… 题解列表 2019年04月17日 0 点赞 0 评论 1023 浏览 评分:0.0