题解列表
奇偶ASCII值判断
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char ch; cin>>ch; if(int(c……
精度控制(C语言讲解)
摘要:解题思路:这是格式化输入输出内容,熟知格式即可。格式化输出printf为:%[输出最小宽度][.精度][长度] 类型例%5.2f表示输出宽度为5,包含两位小数的浮点类型补充:格式化输入scanf格式字……
1057编写分段函数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; float y; scanf("%d",&x); { if(x<1) ……
敲简单C语言代码!!!
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int m,l,i,c[10086],j,k=0; scanf ("%d %d",&l,&m); ……
二级C语言-分段函数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x,f; scanf("%lf",&x); if……
二级C语言-温度转换
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int ctof(int c){ int f; f= 32 + c* 9/5; ret……
1681: 数据结构-行编辑程序(c++)
摘要:解题思路:此题的关键就是getline函数,string 类中的方法,不然后续的空格无法输出,或者答案错误注意事项:参考代码:#include
#include
using namespace s……