1.5 题
#include
{
cout<<"This"<<"is"; cout<<"a"<<"C++"; cout<<"program."; return 0;
1.6 题
#include
{
int a,b,c;
a=10;
b=23;
c=a+b;
cout<<"a+b=";
cout< cout< return 0; } 1.7 七题 #include { int a,b,c; int f(int x,int y,int z); cin>>a>>b>>c; c=f(a,b,c); cout< } int f(int x,int y,int z) { int m; if (x else m=y; if (z return(m); } #include using namespace std; int main() { int a,b,c; cin>>a>>b; c=a+b; cout<<"a+b="< return 0; } 1.9 题 #include using namespace std; int main() { int a,b,c; int add(int x,int y); cin>>a>>b; c=add(a,b); cout<<"a+b="< return 0; } int add(int x,int y) {int z; z=x+y; return(z); } 2.3 题 #include using namespace std; int main() {char c1='a',c2='b',c3='c',c4='\101',c5='\116'; cout< cout<<"\t\b"< return 0; } 2.4 题 #include using namespace std; int main() {char c1='C',c2='+',c3='+'; cout<<"I say: \""< cout<<"\t\t"<<"He says: \"C++ is very interesting!\""<< return 0; } 2.7 题 #include using namespace std; int main() {int i,j,m,n; i=8; j=10; m=++i+j++; n=(++i)+(++j)+m; cout< return 0; } 2.8 题 #include using namespace std; int main() {char c1='C', c2='h', c3='i', c4='n', c5='a'; c1+=4; c2+=4; c3+=4; c4+=4; c5+=4; cout<<"password is:"< } 3.2 题 #include #include using namespace std; int main ( ) {float h,r,l,s,sq,vq,vz; const float pi=3.1415926; cout<<"please enter r,h:"; cin>>r>>h; l=2*pi*r; s=r*r*pi; sq=4*pi*r*r; vq=3.0/4.0*pi*r*r*r; vz=pi*r*r*h; cout< cout<<"l= "< cout<<"s= "< cout<<"sq="< cout<<"vq="< cout<<"vz="< return 0; } 3.3 题 #include using namespace std; int main () {float c,f; cout<<"请输入一个华氏温度:"; cin>>f; c=(5.0/9.0)*(f-32); //注意5 和9 要用实型表示,否则5/9 值为0 cout<<"摄氏温度为:"< return 0; }; 3.4 题 #include using namespace std; int main ( ) {char c1,c2; cout<<"请输入两个字符c1,c2:"; c1=getchar(); //将输入的第一个字符赋给c1 c2=getchar(); //将输入的第二个字符赋给c2 cout<<"用putchar 函数输出结果为:"; putchar(c1); putchar(c2); cout< cout<<"用cout 语句输出结果为:"; cout< return 0; } 3.4 题另一解 #include using namespace std; int main ( ) {char c1,c2; cout<<"请输入两个字符c1,c2:"; c1=getchar(); //将输入的第一个字符赋给c1 c2=getchar(); //将输入的第二个字符赋给c2 cout<<"用putchar 函数输出结果为:"; putchar(c1); putchar(44); putchar(c2); cout< cout<<"用cout 语句输出结果为:"; cout< return 0; } 3.5 题 #include using namespace std; int main ( ) {char c1,c2; int i1,i2; //定义为整型 cout<<"请输入两个整数i1,i2:"; cin>>i1>>i2; c1=i1; c2=i2; cout<<"按字符输出结果为:"< } 3.8 题 #include using namespace std; int main ( ) { int a=3,b=4,c=5,x,y; cout<<(a+b>c && b==c)< cout<<(a||b+c && b-c)< cout<<(!(a>b) && !c||1)< cout<<(!(x=a) && (y=b) && 0)< cout<<(!(a+b)+c-1 && b+c/2)< return 0; } 3.9 题 include using namespace std; int main ( ) {int a,b,c; cout<<"please enter three integer numbers:"; cin>>a>>b>>c; if(a if(b cout<<"max="< else cout<<"max="< else if (a cout<<"max="< else cout<<"max="< cout< return 0; } 3.9 题另一解 #include using namespace std; int main ( ) {int a,b,c,temp,max ; cout<<"please enter three integer numbers:"; cin>>a>>b>>c; temp=(a>b)?a:b; /* 将a和b中的大者 存入temp 中*/ max=(temp>c)?temp:c; /* 将a 和b 中的大者与c 比较,最大者存入max */ cout<<"max="< return 0; } 3.10 题 #include using namespace std; int main ( ) {int x,y; cout<<"enter x:"; cin>>x; if (x<1) {y=x; cout<<"x="< } else if (x<10) // 1≤x<10 {y=2*x-1; cout<<"x="< } else // x≥10 {y=3*x-11; cout<<"x="< } cout< return 0; } 3.11 题 #include using namespace std; int main () {float score; char grade; cout<<"please enter score of student:"; cin>>score; while (score>100||score<0) {cout<<"data error,enter data again."; cin>>score; } switch(int(score/10)) {case 10: case 9: grade='A';break; case 8: grade='B';break; case 7: grade='C';break; case 6: grade='D';break; default:grade='E'; } cout<<"score is "< "< return 0; } 3.12 题 #include using namespace std; int main () {long int num; int indiv,ten,hundred,thousand,ten_thousand,place; /*分别代表个位,十位, 百位,千位,万位和位数 */ cout<<"enter an integer(0~99999):"; cin>>num; if (num>9999) place=5; else if (num>999) place=4; else if (num>99) place=3; else if (num>9) place=2; else place=1; cout<<"place="< //计算各位数字 ten_thousand=num/10000; thousand=(int)(num-ten_thousand*10000)/1000; hundred=(int)(num-ten_thousand*10000-thousand*1000)/ 100; ten=(int)(num-ten_thousand*10000-thousand*1000-hund red*100)/10; indiv=(int)(num-ten_thousand*10000-thousand*1000-hun dred*100-ten*10); cout<<"original order:"; switch(place) {case 5:cout< dl; cout<<"reverse order:"; cout< break; case 4:cout< cout<<"reverse order:"; cout< break; case 3:cout< cout<<"reverse order:"; cout< break; case 2:cout< cout<<"reverse order:"; cout< break; case 1:cout< cout<<"reverse order:"; cout< break; } return 0; } 3.13 题 #include using namespace std; int main () { long i; //i 为利润 float bonus,bon1,bon2,bon4,bon6,bon10; bon1=100000*0.1; //利润为10 万元时的奖金 bon2=bon1+100000*0.075; //利润为20 万元时的奖金 bon4=bon2+100000*0.05; //利润为40 万元时的奖金 bon6=bon4+100000*0.03; //利润为60 万元时的奖金 bon10=bon6+400000*0.015; //利润为100 万元时的奖金 cout<<"enter i:"; cin>>i; if (i<=100000) bonus=i*0.1; //利润在10 万元以 内按10%提成奖金 else if (i<=200000) bonus=bon1+(i-100000)*0.075; //利润在10 万元至20 万时的奖金 else if (i<=400000) bonus=bon2+(i-200000)*0.05; //利润在20 万元至40 万时的奖金 else if (i<=600000) bonus=bon4+(i-400000)*0.03; //利润在40 万元至60 万时的奖金 else if (i<=1000000) bonus=bon6+(i-600000)*0.015; //利润在60 万元至100 万时的奖金 else bonus=bon10+(i-1000000)*0.01; //利润在100 万元以上时的奖金 cout<<"bonus="< return 0; } 3.13 题另一解 #include using namespace std; int main () {long i; float bonus,bon1,bon2,bon4,bon6,bon10; int c; bon1=100000*0.1; bon2=bon1+100000*0.075; bon4=bon2+200000*0.05; bon6=bon4+200000*0.03; bon10=bon6+400000*0.015; cout<<"enter i:"; cin>>i; c=i/100000; if (c>10) c=10; switch(c) {case 0: bonus=i*0.1; break; case 1: bonus=bon1+(i-100000)*0.075; break; case 2: case 3: bonus=bon2+(i-200000)*0.05;break; case 4: case 5: bonus=bon4+(i-400000)*0.03;break; case 6: case 7: case 8: case 9: bonus=bon6+(i-600000)*0.015; break; case 10: bonus=bon10+(i-1000000)*0.01; } cout<<"bonus="< return 0; } 3.14 题 #include using namespace std; int main () {int t,a,b,c,d; cout<<"enter four numbers:"; cin>>a>>b>>c>>d; cout<<"a="< c="< if (a>b) {t=a;a=b;b=t;} if (a>c) {t=a; a=c; c=t;} if (a>d) {t=a; a=d; d=t;} if (b>c) {t=b; b=c; c=t;} if (b>d) {t=b; b=d; d=t;} if (c>d) {t=c; c=d; d=t;} cout<<"the sorted sequence:"< cout< return 0; } 3.15 题 #include using namespace std; int main () {int p,r,n,m,temp; cout<<"please enter two positive integer numbers n,m:"; cin>>n>>m; if (n {temp=n; n=m; m=temp; //把大数放在n 中, 小数放在 m 中 } p=n*m; //先将n 和m 的乘积保存在p 中, 以便求最小公倍数时用 while (m!=0) //求n 和m 的最大公约数 {r=n%m; n=m; m=r; } cout<<"HCF="< cout<<"LCD="< return 0; } 3.16 题 #include using namespace std; int main () {char c; int letters=0,space=0,digit=0,other=0; cout<<"enter one line::"< while((c=getchar())!='\n') {if (c>='a' && c<='z'||c>='A' && c<='Z') letters++; else if (c==' ') space++; else if (c>='0' && c<='9') digit++; else other++; } cout<<"letter:"< other:"< return 0; } 3.17 题 #include using namespace std; int main () {int a,n,i=1,sn=0,tn=0; cout<<"a,n=:"; cin>>a>>n; while (i<=n) {tn=tn+a; //赋值后的tn 为i 个a 组成数的值sn=sn+tn; //赋值后的sn 为多项式前i 项之和a=a*10; ++i; } cout<<"a+aa+aaa+...="< return 0; } 3.18 题 #include using namespace std; int main () {float s=0,t=1; int n; for (n=1;n<=20;n++) { t=t*n; // 求n! s=s+t; // 将各项累加 } cout<<"1!+2!+...+20!="< return 0; } 3.19 题 #include using namespace std; int main () {int i,j,k,n; cout<<"narcissus numbers are:"< for (n=100;n<1000;n++) {i=n/100; j=n/10-i*10; k=n%10; if (n == i*i*i + j*j*j + k*k*k) cout< } cout< return 0; } 3.20 题 #include using namespace std; int main() {const int m=1000; // 定义寻找范围 int k1,k2,k3,k4,k5,k6,k7,k8,k9,k10; int i,a,n,s; for (a=2;a<=m;a++) // a 是2~1000 之间的整数,检查它是否为完数 {n=0; // n 用来累计a 的因子的个数 s=a; // s 用来存放尚未求出的因子之和, 开始时等于a for (i=1;i if (a%i==0) // 如果i 是a 的因子 {n++; // n 加1,表示新找到一个因子 s=s-i; // s 减去已找到的因子,s 的新值是 尚未求出的因子 之和 switch(n) // 将找到的因子赋给k1,...,k10 {case 1: k1=i; break; // 找出的笫1 个因子赋给k1 case 2: k2=i; break; // 找出的笫2 个因子赋给k2 case 3: k3=i; break; // 找出的笫3 个因子赋给k3 case 4: k4=i; break; // 找出的笫4 个因子赋给k4 case 5: k5=i; break; // 找出的笫5 个因子赋给k5 case 6: k6=i; break; // 找出的笫6 个因子赋给k6 case 7: k7=i; break; // 找出的笫7 个因子赋给k7 case 8: k8=i; break; // 找出的笫8 个因子赋给k8 case 9: k9=i; break; // 找出的笫9 个因子赋给k9 case 10: k10=i; break; // 找出的笫10 个因子赋给k10 } } if (s==0) // s=0 表示全部因子都已找到了 {cout< cout<<"its factors are:"; if (n>1) cout< 2 个因子 if (n>2) cout<<","< if (n>3) cout<<","< if (n>4) cout<<","< if (n>5) cout<<","< if (n>6) cout<<","< if (n>7) cout<<","< if (n>8) cout<<","< if (n>9) cout<<","< cout< } } return 0; } 3.20 题另一解 #include using namespace std; int main() {int m,s,i; for (m=2;m<1000;m++) {s=0; for (i=1;i if ((m%i)==0) s=s+i; if(s==m) {cout< cout<<"its factors are:"; for (i=1;i if (m%i==0) cout< cout< } return 0; } 3.20 题另一解 #include using namespace std; int main() {int k[11]; int i,a,n,s; for (a=2;a<=1000;a++) {n=0; s=a; for (i=1;i if ((a%i)==0) {n++; s=s-i; k[n]=i; // 将找到的因子赋给k[1]┅k[10] } if (s==0) {cout< cout<<"its factors are:"; for (i=1;i cout< cout< } } return 0; } 3.21 题 #include using namespace std; int main() {int i,t,n=20; double a=2,b=1,s=0; for (i=1;i<=n;i++) {s=s+a/b; t=a; a=a+b; // 将前一项分子与分母之和作为下一项的分子 b=t; // 将前一项的分子作为下一项的分母} cout<<"sum="< return 0; 3.22 题 #include using namespace std; int main() {int day,x1,x2; day=9; x2=1; while(day>0) {x1=(x2+1)*2; // 第1 天的桃子数是第2 天桃子数加1 后的2 倍 x2=x1; day--; } cout<<"total="< return 0; } 3.23 题 #include #include using namespace std; int main() {float a,x0,x1; cout<<"enter a positive number:"; cin>>a; // 输入a 的值 x0=a/2; x1=(x0+a/x0)/2; do {x0=x1; x1=(x0+a/x0)/2; } while(fabs(x0-x1)>=1e-5); cout<<"The square root of "< } 3.24 题 #include using namespace std; int main() {int i,k; for (i=0;i<=3;i++) // 输出上面4 行*号 {for (k=0;k<=2*i;k++) cout<<"*"; // 输出*号 cout< for (i=0;i<=2;i++) // 输出下面3 行*号 {for (k=0;k<=4-2*i;k++) cout<<"*"; // 输出*号 cout< } return 0; } 3.25 题 #include using namespace std; int main() {char i,j,k; /* i 是a 的对手;j 是b 的对手;k 是c 的对手*/ for (i='X';i<='Z';i++) for (j='X';j<='Z';j++) if (i!=j) for (k='X';k<='Z';k++) if (i!=k && j!=k) if (i!='X' && k!='X' && k!='Z') cout<<"A--"< C--"< return 0; } 4.1 题 #include using namespace std; int main() {int hcf(int,int); int lcd(int,int,int); int u,v,h,l; cin>>u>>v; h=hcf(u,v); cout<<"H.C.F="< l=lcd(u,v,h); cout<<"L.C.D="< return 0; } int hcf(int u,int v) {int t,r; if (v>u) {t=u;u=v;v=t;} while ((r=u%v)!=0) {u=v; v=r;} return(v); } int lcd(int u,int v,int h) {return(u*v/h); } 4.2 题 #include #include using namespace std; float x1,x2,disc,p,q; int main() {void greater_than_zero(float,float); void equal_to_zero(float,float); void smaller_than_zero(float,float); float a,b,c; cout<<"input a,b,c:"; cin>>a>>b>>c; disc=b*b-4*a*c; cout<<"root:"< if (disc>0) { greater_than_zero(a,b); cout<<"x1="< } else if (disc==0) {equal_to_zero(a,b); cout<<"x1="< } else {smaller_than_zero(a,b); cout<<"x1="< cout<<"x2="< } return 0; } void greater_than_zero(float a,float b) /* 定义一个函数,用来求disc>0 时方 程的根*/ {x1=(-b+sqrt(disc))/(2*a); x2=(-b-sqrt(disc))/(2*a); } void equal_to_zero(float a,float b) /* 定义一个函数,用来求disc=0 时方程 的根*/ { x1=x2=(-b)/(2*a); } void smaller_than_zero(float a,float b) /* 定义一个函数,用来求disc<0 时方 程的根*/ { p=-b/(2*a); q=sqrt(-disc)/(2*a); } 4.3 题 #include using namespace std; int main() {int prime(int); /* 函数原型声明*/ int n; cout<<"input an integer:"; cin>>n; if (prime(n)) cout< else cout< return 0; } int prime(int n) {int flag=1,i; for (i=2;i if (n%i==0) flag=0; return(flag); } 4.4 题 #include using namespace std; int main() {int fac(int); int a,b,c,sum=0; cout<<"enter a,b,c:"; cin>>a>>b>>c; sum=sum+fac(a)+fac(b)+fac(c); cout< return 0; } int fac(int n) {int f=1; for (int i=1;i<=n;i++) f=f*i; return f; } 4.5 题 #include #include using namespace std; int main() {double e(double); double x,sinh; cout<<"enter x:"; cin>>x; sinh=(e(x)+e(-x))/2; cout<<"sinh("< return 0; } double e(double x) {return exp(x);} 4.6 题 #include #include using namespace std; int main() {double solut(double ,double ,double ,double ); double a,b,c,d; cout<<"input a,b,c,d:"; cin>>a>>b>>c>>d; cout<<"x="< return 0; } double solut(double a,double b,double c,double d) {double x=1,x0,f,f1; do {x0=x; f=((a*x0+b)*x0+c)*x0+d; f1=(3*a*x0+2*b)*x0+c; x=x0-f/f1; } while(fabs(x-x0)>=1e-5); return(x); } C 语言程序设计(第三版)习题库 1、设圆半径r=,圆柱高h=3,求圆周长、圆面积、圆球表面积、圆球体积、圆柱体积。用scanf 输入数据,输出计算结果,输出时要求文字说明,取小数点后两位数字。请编程序。 #include<> main(){ floatr,h,C1,Sa,Sb,Va,Vb; scanf(__”%f ”__,&r); scanf(”%d ”,__&h _);; C1=2**r; Sa=*r*r; Sb=4*Sa; Va=4**r*r*r/3; Vb=Sa*h; printf(___”Cl=%.2fSa=%.2fSb=%.2fVa=%.2fVb=%.2f ”,Cl,Sa,Sb,Va,Vb ); } 2、输入一个华氏温度,要求输出摄氏温度。公式为c=5(F-32)/9 输出要求有文字说明,取位2小数。 #include<> main(){ floatF,c; scanf("%f",&F); ____c=5*(F-32)/9______; printf("c=%.2f",c); } 3、有一函数:?? ???≥-<≤-<=10113101121x x x x x x y 写一程序,输入x 值,输出y 值。 #include<> main(){ intx,y; printf("输入x :"); scanf("%d",&x); if(x<1){/*x<1*/ y=x; printf("x=%3d,y=x=%d\n",x,y); }elseif(____x<10_______){/*1≤x-10*/ _____y=2*x-1_______; printf("x=%3d,y=2*x-1=%d\n",x,y); }else{/*x≥10*/ y=3*x-11; printf("x=%3d,y=3*x-11=%d\n",x#include"" main() { intx,y; scanf("%d",&x); if(x<1) {y=x;} elseif(x>=1&&x<10) {y=2*x-1;} else {y=3*x-11;} printf("%d",y); }#include"" main() { intx,y; scanf("%d",&x); if(x<1) {y=x;} elseif(x>=1&&x<10) {y=2*x-1;} else {y=3*x-11;} printf("%d\n",y); }#include"" main() { intx,y; scanf("%d",&x); if(x<1) {y=x;} elseif(x>=1&&x<10) {y=2*x-1;} else {y=3*x-11;} printf("%d",y); }scanf("%d",&x); 第一章 1.5题 #include C语言程序设计谭浩强第四版期末复习重点 Newly compiled on November 23, 2020 第一章 程 序设计和C 语言 .什么是计算机程序 程序.. :一组计算机能识别和执行的指令。只要让计算机执行这个程序,计算机就会自动地、有条不紊地进行工作 计算机的一切操作都是由程序控制的,离开程序,计算机将一事无成。 什么是计算机语言 计算机语言:人和计算机交流信息的、计算机和人都能识别的语言。 计算机语言发展阶段:机器语言(由0和1组成的指令) 符号语言(用英文字母和数字表示指令) 高级语言(接近于人的自然语言和数学语言) 面向过程的语言(非结构化的语言、结构化语言);面向对象的语言 语言的发展及其特点 C 语言是一种用途广泛、功能强大、使用灵活的过程性编程语言,既可用于编写应用软件,又能用于编写系统软件。因此C 语言问世以后得到迅速推广。 C 语言主要特点: 语言简洁、紧凑,使用方便、灵活。(只有37个关键字、9种控制语句;程序书写形式 自由,源程序短) 运算符丰富。(34种运算符;把括号、赋值、强制类型转换等都作为运算符处理;表达 式类型多样化) 数据类型丰富。(包括:整型、浮点型、字符型、数组类型、指针类型、结构体类型、共用体类型;C99又扩充了复数浮点类型、超长整型、布尔类型;指针类型数据,能用来实现各种复杂的数据结构的运算。) 具有结构化的控制语句。(如if…else语句、while语句、do…while语句、switch语句、for语句用函数作为程序的模块单位,便于实现程序的模块化;C语言是完全模块化和结构化的语言) 语法限制不太严格,程序设计自由度大。(对数组下标越界不做检查;对变量的类型使用比较灵活,例如,整型量与字符型数据可以通用;C语言允许程序编写者有较大的自由度,因此放宽了语法检查) 允许直接访问物理地址,能进行位操作,可以直接对硬件进行操作。(C语言具有高级语言的功能和低级语言的许多功能,可用来编写系统软件;这种双重性,使它既是成功的系统描述语言,又是通用的程序设计语言) 用C语言编写的程序可移植性好。(C的编译系统简洁,很容易移植到新系统;在新系统上运行时,可直接编译“标准链接库”中的大部分功能,不需要修改源代码;几乎所有计算机系统都可以使用C语言) 生成目标代码质量高,程序执行效率高。 1.C语言允许用两种注释方式:计算法 3.编写程序 4.对源程序进行编辑、编译和连接 5. 运行程序,分析结 6.编写程序文档 第二章算法——程序的灵魂 一个程序主要包括以下两方面的信息: (1) 对数据的描述。在程序中要指定用到哪些数据以及这些数据的类型和数据的组织形式,这就是数据结构。 (2) 对操作的描述。即要求计算机进行操作的步骤,也就是算法。 数据是操作的对象,操作的目的是对数据进行加工处理,以得到期望的结果。 着名计算机科学家沃思(Nikiklaus Wirth)提出一个公式:算法 + 数据结构 = 程序 一.填空 1. 每个C程序都必须有且仅有一个________ 函数。 2. C语言程序开发到执行通常要经过6个阶段即编辑、预处理、________、链接、加载和执行。 3. 软件是程序,以及______、使用和维护所需要的所有文档。 4. 国标中规定:“计算机程序是按照具体要求产生的适合于计算机处理的_________”。 5. 程序设计语言按照书写形式,以及思维方式的不同一般分为低级语言和________两大类。 6. C语言是由________组成的。 7. C语言的函数可分为主函数main、标准库函数和_________。 8. 一个函数是由两部分组成的,即:________和函数体。 9. 编译是将C语言所编写的源程序________成机器代码,也称为建立目标代码程序的过程。 10. 程序是由某种程序设计语言编制出来,体现了编程者的控制思想和对计算机执行操作 的要求。不同的任务功能,就会需求不同的软件程序,如:控制计算机本身软硬件协调工作,并使其设备充分发挥效力,方便用户使用的系统软件程序,称为操作系统;而为办公自动化(OA)、管理信息系统(MIS)、人工智能、电子商务、网络互联等等应用而开发的软件程序,统称为_________。 11. 机器语言是以__________形式表示的机器基本指令的集合,是计算机系统唯一不需要翻译可以直接识别和执行的程序设计语言。 12. 与机器语言相比,使用汇编语言来编写程序可以用_______来表示指令的操作码和操作对 象,也可以用标号和符号来代替地址、常量和变量。 13. 在编译程序之前,凡以____开头的代码行都先由预处理程序预处理。 14. C程序的执行均是由执行_________开始。 15. 函数体即为包含在{}内的部分。它分为________和为完成功能任务由若干个C 语句 组成的执行部分。 16. C语言程序中一条简单语句是以________字符作为结束符的。 17. C语言是结构化、________的程序设计语言。 18. 由于计算机硬件不能直接识别高级语言中的语句,因此,必须经过“_______程序”,将用高级语言编写的程序翻译成计算机硬件所能识别的机器语言程序方可执行。 19. 用高级语言编写的程序需翻译成计算机硬件所能识别的机器语言程序方可执行。所以 说,用高级语言进行程序设计,其编程效率高,方便易用,但_______没有低级语言高。 20. 谭浩强c++程序设计课后答案 娄警卫C语言程序设计第三版习题库答案
《c++程序设计》谭浩强课后习题答案
C语言程序设计谭浩强第四版期末复习重点
C语言程序设计试题集与答案解析
(完整版)谭浩强c程序设计课后习题答案