C语言程序设计教程(第三版)课后习题6.5 (C++代码) 摘要:解题思路:分段累加求和,循环的基本使用,注意如何调整精度注意事项:精度调整,需要头文件#include <iomanip> cout<<setiosflags(ios::fixed)<<setpre…… 题解列表 2018年05月31日 0 点赞 0 评论 667 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.7 (C++代码) 摘要:解题思路:循环的应用,遍历每一个数,对每一个数进行因子求和,数组保存因子,若因子之和为该数即输出注意事项:该题可能会大数超时,所以因子求和时,若因子之和大于该数,直接结束循环,可以减少耗时, 个人见…… 题解列表 2018年05月31日 2 点赞 0 评论 1006 浏览 评分:0.0
C语言考试练习题_保留字母 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int i,sum=0; char v[100];…… 题解列表 2018年05月31日 0 点赞 0 评论 749 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:竞赛题一定要控制程序执行时间,所以不可以使用while(true)无限死循环参考代码:#include<stdio.h> int main() { int n; whi…… 题解列表 2018年05月31日 1 点赞 0 评论 1117 浏览 评分:0.0
写的比较差一点,不过还是贴出来吧a 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>//全局变量计数的numint num=0;void chuli(int N,int K);int …… 题解列表 2018年05月31日 0 点赞 0 评论 1170 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:# include<stdio.h>int main(){ int i=0, j, temp = 1; int str[10]; while (i!=1…… 题解列表 2018年05月31日 0 点赞 0 评论 426 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.3 (C语言代码) 摘要:解题思路:简单明了注意事项:参考代码:# include<stdio.h>int main(){ int i=0; int str1[3],str2[3],str3[3]; whil…… 题解列表 2018年05月31日 0 点赞 0 评论 554 浏览 评分:0.0
小O的乘积 (C语言代码) 摘要:#include<stdio.h> int main() { int i,n,a[100000],a1,a2,a3,a4,a5,a6,b1,b2,xb1,xb2; while(scanf(…… 题解列表 2018年05月31日 0 点赞 0 评论 1423 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i; b=0; c=1; scanf ("%d",&a); for…… 题解列表 2018年05月31日 0 点赞 0 评论 582 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.4 (C语言代码) 摘要:解题思路:第一判断在第几个字符插入,然后腾出空间,最后写入。注意事项:参考代码:# include<stdio.h>int main(){ int i = 0, j = 0, temp = 0,…… 题解列表 2018年05月31日 0 点赞 0 评论 511 浏览 评分:0.0