题解列表
C语言程序设计教程(第三版)课后习题10.1 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3],i,j,t; for(i=0;i<3;i++) scanf("%d"……
不需要数组和指针的做法!!!
摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ char c; while((c=getchar())!='\n'&&c!=-1)……
数字整除 (C语言代码)
摘要:#include<stdio.h>
#include<string.h>
int chartoint(char s[])
{
char *p,*q;
char temp;
……
输出九九乘法表 (C语言代码)
摘要:解题思路:两重循环没什么难度吧,主要就是制表要跟它完全一样太恶心。。。要很仔细地观察,我改了3次才改的完全一样参考代码:#include<stdio.h>int main(){ prin……
【作业调度方案】 (C语言代码)
摘要:我们现在要利用m台机器加工n个工件,每个工件都有m道工序,每道工序都在不同的指定的机器上完成。每个工件的每道工序都有指定的加工时间。 每个工件的每个工序称为一个操作,我们用记号j-k表示一个操作,其……
The 3n + 1 problem (C语言代码)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int fun(int n){ int k=1; if(n==1) { return k; } while(n!=1) {……
C语言程序设计教程(第三版)课后习题5.4 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <algorithm>using namespace std;int main(){ int a,b,c; s……
C语言程序设计教程(第三版)课后习题5.5 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <algorithm>using namespace std;int main(){ int x; scanf……