题解列表

筛选

非直接打印的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int a){ int sum=0; for(int i=1;i<a;i++) { if(a%i==0) sum+=……

弟弟的作业

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char c=10;    int sum=0;    int a=0,b=0,d=0,t,k=0,i=0……

题解 2780: 奇偶数判断

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a%2==0) { printf("even\n"); }……

去掉空格(c语言代码)

```c#include#includevoidremoveblank(char*s);intmain(){charstrs[101]={0};while(gets(strs)){removeblank(strs);//去除空格puts(strs);//输出}return0;}voidremovebl

二级C语言-统计字符

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     int zimu=0,num=0,kon=0,oth=0;     char c;    ……

1018题: 有规律的数列求和

#自己写的代码没有写出来,不会写#思路难点想着两个循环嵌套使用,但是不会表达#参考代码```c#includeintmain(){doubleSn=0,an=0,n,i,t,a=2.0,b=1.0;//a为分子,b为分母,an为单项和值,Sn为总和scanf("%lf",

奖学金(c语言代码)

解题思路:像正常排序一样,只不过这道题判断大小分多钟情况,只需要在判断大小的函数上稍加修改就可以了。使用库函数qsort跑不过,所以自己写了一个。```c#include#includetypedefstructstu{intstunmber;intscore[3];}stu;intcompare(c