题解列表
C语言程序设计教程(第三版)课后习题1.6 (C语言代码)
摘要:解题思路:注意事项:#include<stdio.h>int main(){ int a,b,c,t; scanf("%d%d",&a,&b,&c); if(a>b){ ……
DNA (C语言描述,数据结构)
摘要:#include<stdio.h>#include<stdlib.h>typedef struct qfirst{ int x; int y; struct qfirst *next;}qfirst;……
printf基础练习2 (C语言代码)
摘要:解题思路:看看题解确实挺好的注意事项:参考代码:#include<stdio.h>int main(){int a;scanf("%d",&a);//这里不需要换行吧?/nprintf("%#o ……
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)
摘要:解题思路:根据刚学的scanf进行使用注意事项:题目只求China的密码,当该值无任何输入时,以输出内容为准,而且若不输入&,系统会崩溃,%c用来输入字符型参考代码:#include<stdio.h>……
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){printf("**************************\n");printf("Hello Wor……
剪刀石头布 (C语言代码)
摘要:解题思路:写的没什么新意,就是好理解。:)注意事项:参考代码:#include<stdio.h>int main(){enum ssc{stone,scissors,cloth} ssc1,ssc2;……
C语言程序设计教程(第三版)课后习题8.5 (C语言代码)
摘要:解题思路:题目的要求是要我们在主函数中输入字符,调用函数进行逆序转换,有输出语句,可通过主函数调用满足“在主函数中输出”。利用函数调用,在主函数中设数组char ch[100],此时用gets(ch)……
【偶数求和】 (C语言代码)
摘要:解题思路:注意事项:解这题是我感觉注意的就是如果n不是m的倍数需要注意,参考代码:#include<stdio.h>int main(void){ int num[100]; int n,m,sum=……
众数问题 (C语言代码)
摘要:解题思路:很麻烦的思路,但是方便看注意事项:参考代码:#include<stdio.h>int compare_of(int* st,int x);int main() { int i,n,j,k,m……