C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:#include <stdio.h>main(){ int a,b,c,w; scanf("%d %d %d",&a,&b,&c); w=(a>b)?a:b;//这两句应该可以简化成一句吧 w=(w>…… 题解列表 2017年09月27日 0 点赞 0 评论 839 浏览 评分:4.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:#include <stdio.h>int main(){ int a,b,c,w; scanf("%d %d %d",&a,&b,&c); if(a>b) w=a; else w…… 题解列表 2017年09月27日 0 点赞 0 评论 1621 浏览 评分:8.0
淘淘的名单 (C语言代码) 摘要:#include <stdio.h>#include <string.h>int main(){ char str[5];//最大长度5 int n; scanf("%d",&n);//输入n次 wh…… 题解列表 2017年09月27日 2 点赞 0 评论 1430 浏览 评分:0.0
【排队买票】 (C语言代码) 摘要:解题思路:将排队看做M人的排列问题,在M!个排列中寻找符合条件的排列(排队时只要一元的人数大于等于2元就有零钱),采用回溯法(深度优先算法)恭喜我成为继小方之后第二个AC此题的男人#include <…… 题解列表 2017年09月27日 6 点赞 1 评论 1106 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("***********/n"); print… 题解列表 2017年09月27日 0 点赞 0 评论 849 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:#include<stdio.h>int main(){ char c1='C',c2 = 'h',c3= 'i',c4 = 'n',…… 题解列表 2017年09月27日 0 点赞 0 评论 838 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:注意要用double类型的存储参考代码:#include<stdio.h>double fact(int b){ int p; double m=1.0; …… 题解列表 2017年09月27日 0 点赞 0 评论 1057 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************\n"); printf("hello world\n"); pr…… 题解列表 2017年09月27日 0 点赞 0 评论 636 浏览 评分:0.0
C语言训练-数字母 (C语言代码) 摘要:#include <stdio.h>#include<string.h>int main(){ char str[100]; int i,n=0,c=0; gets(str); n=strlen(st…… 题解列表 2017年09月27日 0 点赞 0 评论 912 浏览 评分:0.0
C语言训练-大、小写问题 (C语言代码) 摘要:#include <stdio.h>#include<string.h>//编译预处理命令,用于下面求字符串长度int main(){ char str[100];//字符串长度为100 int i,…… 题解列表 2017年09月27日 0 点赞 0 评论 1143 浏览 评分:9.9