题解列表

筛选

弟弟的作业

摘要:#include<stdio.h> int main() {     int a,b,c,k,count=0;     char op;  //操作符     while (~(k=scan……

成绩评定

摘要:解题思路:#include<stdio.h>int main(){ int score; scanf("%d",&score); if(score>=90) { printf("A\n"); } e……

结论:x*y-x-y

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int x,y;scanf("%d %d",&x,&y);printf("%d",x*y-x-y); return……

大小写字符转换(大写变小写,其他照样输出)

摘要:解题思路:用一个自定义函数,让大写转小写。注意事项:这个我在编译器上运行一致,结果上传判断我说  答案错误,不知道为什么的我选择在这里留坑。参考代码:void p(char a[])//传地址{ in……

实数的打印 c语言

摘要:解题思路:这个和打印hello world 我用的一个思路,目的达到了,答案可能不妥注意事项:参考代码:#include<stdio.h>int main(){ float a; scanf("%f"……

利用宏定义来解题,闰年判断

摘要:解题思路:闰年的条件,是年份能被400整除或者4整除且不能被100整除  这个应该是唯一需要注意的点注意事项:此处注意宏是可以利用函数调用的参考代码:#include<stdio.h>#define ……