题解列表

筛选

输出绝对值

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>#include<iomanip>using namespace std;int main(){    ……

奇偶ASCII值判断

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    char ch;    cin>>ch;    if(int(c……

懂得都懂写法

摘要:参考代码:#include<iostream>#include<algorithm>#include<cstring>#include<sstream>using namespace std;cons……

精度控制(C语言讲解)

摘要:解题思路:这是格式化输入输出内容,熟知格式即可。格式化输出printf为:%[输出最小宽度][.精度][长度] 类型例%5.2f表示输出宽度为5,包含两位小数的浮点类型补充:格式化输入scanf格式字……

数组存储求解

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n = -1, p[100], j = 0, k = 0, l = 0; do { n++; sca……

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……