C语言考试练习题_一元二次方程 (C语言代码) 摘要:思路:如果b*b-4*a*c等于0,则两个根相等并等于负的2a分之b,如果b*b-4*a*c不等于0,则两个根不等,带入公式(-b-sqrt(b*b-4*a*c))/(2*a)答案:#include<…… 题解列表 2017年06月19日 4 点赞 3 评论 2172 浏览 评分:8.8
2006年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:思路:进行无限循环,用break退出循环答案:#include<stdio.h> int main(){ int i,a=0,b=0,c=0; while(scanf("%d",&i)){ …… 题解列表 2017年06月19日 15 点赞 2 评论 1873 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:#include<stdio.h>#include<string.h>struct INFO{ int year; int mon; int day; int num;};int main() { s…… 题解列表 2017年06月19日 0 点赞 0 评论 947 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.7 (C语言代码) 摘要:#include<stdio.h>#include<string.h>void get(char a[],int n,int m){ char b[100]; int i,j=0; for(i=…… 题解列表 2017年06月18日 0 点赞 0 评论 816 浏览 评分:0.0
C二级辅导-进制转换 (C语言代码) 摘要:#include<stdio.h>int main(){ int x; scanf("%d",&x); printf("%o",x); return 0;}…… 题解列表 2017年06月18日 0 点赞 0 评论 1125 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.5 (C语言代码) 摘要:#include "stdio.h"main(){int n,i=0,j=1,k;scanf("%d",&n);int a[n];for(k=0;k<n;k++){a[k]=k+1;}while(n>…… 题解列表 2017年06月18日 0 点赞 1 评论 646 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:思路:c的范围从-100到150,所以循环从-100开始到150,每五个数输出一次,则c与5取余等于0则输出一次答案:#include<stdio.h> double ctof(int c); d…… 题解列表 2017年06月18日 4 点赞 0 评论 1584 浏览 评分:6.0
汽水瓶 (C语言代码)看不懂的点我 摘要:题目分析分析什么鬼??列个表观察一下数就能得出结论 所以我认为我的比其他的题解都简单代码int main() { int a[10]; int i=0,j=0; whi…… 题解列表 2017年06月18日 11 点赞 9 评论 1019 浏览 评分:9.0
C语言训练-字符串正反连接 (C语言代码) 摘要:#include<stdio.h>#include<string.h>int main(){ char s[50],s1[100],t;//定义两个数组。 int i=0,len; gets(s);/…… 题解列表 2017年06月18日 6 点赞 7 评论 2444 浏览 评分:9.0
C语言训练-大、小写问题 (C语言代码) 摘要:#include<stdio.h>#include<string.h>//处理字符串的头文件int main(){ char s[100]; int i,len; gets(s);//输入一个字符串以…… 题解列表 2017年06月18日 4 点赞 0 评论 2360 浏览 评分:9.0