C语言程序设计教程(第三版)课后习题11.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Stu{ char sno[20]; char name[20]; int grade[3];};inp…… 题解列表 2018年04月03日 0 点赞 0 评论 1111 浏览 评分:0.0
C语言考试练习题_排列 (C语言代码)思路清晰 但是和答案输出顺序不同 不管了。。 摘要:根据中学排列组合的知识,4个数选3个数排列,结果共有C43乘上A33即4*3*2*1=24中排列方式。于是想到一种输出方法,参考代码如下:#include <stdio.h> int main(…… 题解列表 2018年04月04日 1 点赞 2 评论 431 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码#include <stdio.h> int main (void) { int a; int b; scanf ("%d%d",&a,&b); p…… 题解列表 2018年04月04日 0 点赞 0 评论 616 浏览 评分:0.0
11行代码就解决问题,觉得行的顺手点个赞呗 摘要:#include<stdio.h> #include<string.h> int main() { int i; char a[3]; gets(a); for(i=0;i<4;i++)…… 题解列表 2018年04月04日 2 点赞 0 评论 998 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,m; scanf("%d%d%d",&a,&b,&c); m = (a>b?a:b)>c?(…… 题解列表 2018年04月04日 0 点赞 0 评论 560 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:规律注意我奇偶数情况合并了注意事项:参考代码:#include<stdio.h> int main(){ int n; do { scanf…… 题解列表 2018年04月04日 0 点赞 0 评论 666 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int input , i; scanf("%d",&input); for( i = 2 ; i …… 题解列表 2018年04月04日 0 点赞 0 评论 592 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>typedef struct Lnode{ int no; int num; …… 题解列表 2018年04月04日 0 点赞 0 评论 923 浏览 评分:0.0
采药 (C语言代码) 摘要:解题思路:这道题提交了好多次都失败了,刚开始想当然地用贪心算法,后来发现错了又用回溯法,但是运行超时,最后采用动态规划顺利解决。这题的解题思路及方法其他题解已经讲得很清楚了。所以此文章仅仅是为了记下自…… 题解列表 2018年04月04日 0 点赞 0 评论 1172 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int isprime(int x){ if(x==1)//别忘了1不是素数 ret…… 题解列表 2018年04月04日 0 点赞 0 评论 962 浏览 评分:0.0