C语言程序设计教程(第三版)课后习题10.1 (C语言代码) 摘要:解题思路: 使用数组,输入三个整数,然后通过冒泡法,进行从小到大的有序排列,最后输出数组。注意题目要求空格隔开。代码如下:#include<stdio.h> #define xx 3 int…… 题解列表 2017年06月16日 2 点赞 0 评论 1114 浏览 评分:0.0
矩阵翻硬币 (C语言代码) 摘要:最后规律 仅供参考只有字符串支持1001位数字。。。#include<stdio.h> #include<math.h> int main() { unsigned long int n, …… 题解列表 2017年06月16日 0 点赞 3 评论 1552 浏览 评分:7.3
C语言程序设计教程(第三版)课后习题9.10 (C语言代码) 摘要:解题思路: 对照ASCLL码表的字符数值,对获取到的字符中的字母数值进行加减操作,不是字母的字符数值保持不变,最后逐一输出字符。涉及知识点: 字符的获取、字符长度的获取、ASCLL码表的…… 题解列表 2017年06月16日 8 点赞 10 评论 2159 浏览 评分:6.0
C语言程序设计教程(第三版)课后习题6.11 (C语言代码) 摘要:#include "stdio.h"#include "math.h"main(){ float a; float x=1,x1; scanf("%f",&a); while(fabs(x-x1)>0…… 题解列表 2017年06月16日 1 点赞 0 评论 1038 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.7 (C语言代码) 摘要:#include "stdio.h"main(){ int i,j,v,n; scanf("%d",&n); for(i=1;i<=n;i++) { int a[i],s=0,k=1; for(j…… 题解列表 2017年06月16日 2 点赞 1 评论 964 浏览 评分:6.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:#include<stdio.h>int main{printf("**********\nHello World\n**********\n");return(0)}…… 题解列表 2017年06月16日 0 点赞 0 评论 975 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:#include "stdio.h"long long fun(int x);main(){ int n,i; long long s=0; scanf("%d",&n); …… 题解列表 2017年06月16日 0 点赞 0 评论 1003 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.4 (C语言代码) 摘要:#include<stdio.h>#include<math.h>#define LEAP_YEAR(y) ((y%4==0&&y%100!=0)||(y%400==0))int main(){ i…… 题解列表 2017年06月15日 1 点赞 0 评论 783 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.5 (C语言代码)(答案错误解析) 摘要:#include<stdio.h> int main() { int x, y; scanf("%d", &x); if(x<1)y =x; if(x>=10)y =3*x-11; el…… 题解列表 2017年06月15日 1 点赞 3 评论 824 浏览 评分:0.0
翻硬币 (C语言代码) 摘要:#include<stdio.h> #include<string.h> /*引用strlen*/ int main() { char S[1001],E[10…… 题解列表 2017年06月15日 8 点赞 2 评论 2550 浏览 评分:9.2