2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:1/2与1.0/2的区别参考代码:#include<stdio.h>#include<math.h>int main(){ int n; double y; scanf("%d",…… 题解列表 2019年05月05日 0 点赞 0 评论 556 浏览 评分:0.0
P1018 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a[100],cnt=0,n,m; long long sum=1; scanf("…… 题解列表 2019年05月05日 0 点赞 0 评论 1471 浏览 评分:0.0
[编程入门]宏定义之闰年判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) ((y%4==0)&&(y%100!=0)||(y%400==0))int main(){ i…… 题解列表 2019年05月05日 0 点赞 0 评论 627 浏览 评分:0.0
P1019 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; int a[10050],b[10050];…… 题解列表 2019年05月05日 0 点赞 0 评论 1092 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:注意看题目输出要求,c的的值都是间隔5的,所以c=c+5参考代码:#include<stdio.h>int ctof(int c){ int f; f=32+c*9/5; retu…… 题解列表 2019年05月05日 0 点赞 0 评论 737 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[6][6],n,i,j,max,k,l; scanf("%d",&n); for(i=0;i<n;i…… 题解列表 2019年05月05日 0 点赞 0 评论 1004 浏览 评分:0.0
C语言训练-字符串正反连接 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ char a[60]; int l,i=…… 题解列表 2019年05月05日 0 点赞 0 评论 555 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct data{int year;int month;int day;}s;int main(){int t=0; scanf(…… 题解列表 2019年05月05日 0 点赞 0 评论 1415 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct data{int year;int month;int day;}s;//定义结构体int main(){int t=0;…… 题解列表 2019年05月05日 0 点赞 0 评论 1325 浏览 评分:0.0
C语言训练-谁家孩子跑最慢* (C语言代码)(此方法只此一家,欢迎各位拍砖指正) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,m,n,s,a[9],sum=0; for(i=0;i<9;i++) { a[i]=i+1; …… 题解列表 2019年05月05日 0 点赞 0 评论 1193 浏览 评分:0.0