摘要: //一元二次方程求解 //重复执行,直到按ctrl+D或ctrl+E 结束 // #include<math.h> #include<stdio.h> #include<stdlib.h> int main(){ float a,b,c,x1,x2; float delta,real,imag; p 阅读全文
posted @ 2019-11-17 21:28 旭日初升 阅读(120) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> int main() { int score; scanf("%d",&score); if(score<0||score>100) { printf("输入数据错误\n"); exit(0); } switch(score/10) { case 10: case 9:printf("优秀\n");break; case 8 阅读全文
posted @ 2019-11-04 21:34 旭日初升 阅读(164) 评论(2) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> int main() { int score; scanf("%d",&score); if(score<0||score>100) { printf("输入数据错误\n"); exit(0); } switch(score/ 阅读全文
posted @ 2019-11-04 21:29 旭日初升 阅读(120) 评论(2) 推荐(0)
摘要: 错误:a1、a2、a3前未插入地址&,%f是单精度,应该用双精度 阅读全文
posted @ 2019-11-02 19:06 旭日初升 阅读(88) 评论(2) 推荐(0)
摘要: 一致 阅读全文
posted @ 2019-11-02 18:50 旭日初升 阅读(102) 评论(1) 推荐(0)
摘要: 单词易拼错; 格式排版不正确; 标点符号添加漏加 阅读全文
posted @ 2019-10-22 23:43 旭日初升 阅读(105) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { int x; printf("请输入一个整数"); scanf("%d",&x); if(x%2==0) printf("这个数为偶数"); else printf("这个数为奇数"); return0; } 阅读全文
posted @ 2019-10-22 23:27 旭日初升 阅读(127) 评论(0) 推荐(0)