C语言程序设计教程(第三版)课后习题5.4 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <algorithm>using namespace std;int main(){ int a,b,c; s…… 题解列表 2017年07月26日 0 点赞 0 评论 1078 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int fun(int n){ int k=1; if(n==1) { return k; } while(n!=1) {…… 题解列表 2017年07月26日 0 点赞 0 评论 967 浏览 评分:0.0
【作业调度方案】 (C语言代码) 摘要:我们现在要利用m台机器加工n个工件,每个工件都有m道工序,每道工序都在不同的指定的机器上完成。每个工件的每道工序都有指定的加工时间。 每个工件的每个工序称为一个操作,我们用记号j-k表示一个操作,其…… 题解列表 2017年07月26日 4 点赞 8 评论 1245 浏览 评分:2.0
输出九九乘法表 (C语言代码) 摘要:解题思路:两重循环没什么难度吧,主要就是制表要跟它完全一样太恶心。。。要很仔细地观察,我改了3次才改的完全一样参考代码:#include<stdio.h>int main(){ prin…… 题解列表 2017年07月25日 0 点赞 1 评论 1849 浏览 评分:8.7
指针做法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>move(int *a,int *b,int m,int n);int main(){ int i,a[1024],b[1024]…… 题解列表 2017年07月25日 3 点赞 0 评论 1154 浏览 评分:0.0
数字整除 (C语言代码) 摘要:#include<stdio.h> #include<string.h> int chartoint(char s[]) { char *p,*q; char temp; …… 题解列表 2017年07月25日 0 点赞 0 评论 1052 浏览 评分:0.0
不需要数组和指针的做法!!! 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ char c; while((c=getchar())!='\n'&&c!=-1)…… 题解列表 2017年07月25日 5 点赞 6 评论 1300 浏览 评分:9.8
C语言程序设计教程(第三版)课后习题10.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3],i,j,t; for(i=0;i<3;i++) scanf("%d"…… 题解列表 2017年07月25日 0 点赞 0 评论 832 浏览 评分:0.0
亲和的解法 摘要:解题思路:注意事项:刚开始我做的代码是一组一组的吸收数据并得出结果,然后想到了利用数组的办法来收集结果并统一输出参考代码:#include <stdio.h>#include <stdlib.h>in…… 题解列表 2017年07月25日 1 点赞 0 评论 1366 浏览 评分:0.0
A+B for Input-Output Practice (IV) (C语言代码) 摘要:#include <stdio.h>int main(){ int t=1,sum=0,i; while(t) { scanf("%d",&t); int a[t]; for(i=0;i<t;i…… 题解列表 2017年07月25日 0 点赞 0 评论 872 浏览 评分:0.0