题解列表
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)
摘要:解题思路:先计算该月第一天是该年第几天,然后再根据该日为该月第几天,通过相加把最后结果计算出来。注意事项:注意闰年的计算参考代码:#include"stdio.h"typedef struct ……
字符串问题 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[300]; int i; while(g……
最小公倍数 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i; while(scanf("%d%d",&a,&b)!=EOF) { ……
大小写转换 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; int i; while(g……
上车人数 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int add(int a,int n,int Y){ if(n==1) return a; else if(n==2) r……
回文数(一) (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(int n);int fx(int n);int main(){ int M,L,count; scanf("%……
小明A+B (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int M,A,B; scanf("%d",&M); while(M--) { ……
C语言程序设计教程(第三版)课后习题6.4 (C语言代码)
摘要:解题思路: 程序正确,但总是提醒答案错误,是因为结果超出了变量可表示的范围 注意事项: 使用unsigned long int 类型。 参考代码:#include<stdio……
C语言程序设计教程(第三版)课后习题10.4 (C语言代码)
摘要:解题思路:这是用户海洋之心的代码,我只是加了点注释,可能注释不是很规范易懂注意事项:参考代码:#include<stdio.h>void move(int a[],int n,int m);int m……