1、1-7-1/输出一个数的 10 倍#include using namespace std;int main()couta;coutusing namespace std;int main()double x,y,min;coutxy;min=(xy?y:x);coutusing namespace std;int main()coutrad;double c,s;c=2*3.14*rad;s=3.14*rad*rad;coutusing namespace std;int main()int hour,min,second;hour=10000/3600;min=(10000%3600)/6
2、0;second=10000-hour*3600-60*min;coutusing namespace std;int main()int num,num_bai,num_shi,num_ge;coutnum;num_bai=num/100;num_shi=(num-num_bai*100)/10;num_ge=num-num_bai*100-num_shi*10;coutusing namespace std;int main()double y,n;coutn;if (n0) y=n+1;if (nusing namespace std;int main()double fenshu;in
3、t xuehao;char dengji;int i;for (i=1;ifenshu;if (fenshu=90int main()char zifu;int ascii;coutzifu;ascii=zifu;if (ascii=48int main()int xishu=-1;double danshu=1.0;int i=1;double sifenzhipi=0;doxishu=xishu*(-1);danshu=1.0/(2*i-1);sifenzhipi=sifenzhipi+xishu*danshu;i+;while(danshu=0.000001);cout#include
4、using namespace std;int main()int b=2;int feibo1=0;int feibo2=1;coutusing namespace std;int main()char zimu;int a,e,i,o,u;a=e=u=i=o=0;begin:cinzimu;switch(zimu)case a :a+;break;case e :e+;break;case i :i+;break;case o :o+;break;case u :u+;break;case # :goto end;goto begin;end:coutusing namespace std
5、;int main()int i,j;int sum=0;for (i=5;iusing namespace std;int main()int num=1;int sushu=0;start:;num+;for (int i=2;iusing namespace std;int main()int x,y,z;for(x=0;xusing namespace std;int main()int a,b,c,d,e;c=0;cina;coutusing namespace std;int main()int i,j;for (i=1;i=6int main()int a10;for(int i
6、=0;iai;int max=a0,min=a0,sum=a0;for(int j=0;jaj?max:aj);min=(minusing namespace std;int main()int score10;int sum=0,a=0,b=0;for(int i=0;iscorei;sum=sum+scorei;double ave=sum/10.0;for(int j=0;jave) a+;if(scorejusing namespace std;int main()int a10,sum=0,min,max;double ave;int *ptoa=a;for (int i=0;i*(
7、a+i);sum+=*(a+i);min=*(a);max=*(a);for (int j=1;j*(a+j)?max:*(a+j);coutusing namespace std;int main()int a10,sum=0,j=0,c=0; /定义数组 a,sum是各学生成绩之和,j 是小于 60 的个数,c 是大于平均值的个数double ave=0; /定义平均值int *ptoa=a; /使用指针for (int i=0;i*(ptoa+i);sum+=*(ptoa+i);if (*(ptoa+i)ave)c+;coutusing namespace std;int main()c
8、har string100;cinstring;int i=0,an=0,in=0;coutusing namespace std;int main()char a100; /定义存放字符串的数组char *ptoa=a; /使用指针int i=0,an=0,in=0; /an,in 分别为 a,i 的个数cina;while (*(ptoa+i)!=0) /a【i】coutusing namespace std;int main()int a33;for (int i=0;i*(*(a+i)+j);coutusing namespace std;int main()int a11=2,4,5
9、,8,12,14,16,18,20,30,0,b,i,m,j;cinb;a10=b;if (b30)goto end2;for(i=0;ib)m=i+1;goto end;end:;for (j=10;j=m+1;j-)aj=aj-1;am=b;end2:;for (int k=0;kusing namespace std;int main()int i,j,temp;int a11=2,4,5,8,12,14,16,18,20,30;cina10;for (i=0;iaj+1)temp=aj+1;aj+1=aj;aj=temp;for (int k=0;kusing namespace st
10、d;int main()int a11=2,4,5,8,12,14,16,18,20,30,num,i,j;coutnum;if (numa9)a10=num;elsefor (i=0;inum)for(j=9;j=i;j-)aj+1=aj;ai=num;break;for (i=0;ivoid main()int a11=2,4,5,8,12,14,16,18,20,30,b,i=0,j=10;cinb;while(aii)aj=aj-1;j-;ai=b;coutusing namespace std;int main()int a53,s5=0,0,0,0,0,temp;for (int
11、i=0;i*(*(a+i)+j);*(s+i)+=*(*(a+i)+j);/*/注释掉的部分可以输出每行数据之和for (int k=0;k*(s+n+1) temp=*(s+n+1);*(s+n+1)=*(s+n);*(s+n)=temp;for (int l=0;lusing namespace std;int fun1(int x,int y);int fun2(int x,int y);int fun3(int x,int y);int fun4(int x,int y);int main()int a,b;coutab;coutusing namespace std;double j
12、c(int x);int sm(int x);int main()int m,n,s2;double s1;cinmn;s1=jc(m)/(jc(n)*jc(m-n);s2=sm(m)-sm(n);cout#include using namespace std;double jxf(int n);double txf(int n);double f(double x);/const pi=3.1415927;int main()int n;double y1,y2;cinn;y1=jxf(n);y2=txf(n);cout#include using namespace std;double
13、 jxf(int n);double txf(int n);double f(double x);const pi=3.1415927;int main()int n;double y1,y2;cinn;y1=jxf(n);y2=txf(n);if (abs(y1-2)abs(y2-2) cout#include using namespace std;double jxf(int n);double txf(int n);double f(double x);const pi=3.1415927;int main()int n;double y1,y2;cinn;y1=jxf(n);y2=t
14、xf(n);if (abs(y1-2)abs(y2-2) coutusing namespace std;int my(int x,int y);int mb(int x,int y);int main()int a,b,max,min;cinab;max=my(a,b);min=mb(a,b);couty?y:x);i=1;i-)if (x%i=0int mb(int x,int y)for (int i=(xy?x:y);i=1;i+)if (i%x=04-11#include using namespace std;void delchar(char *s1,char s2);int m
15、ain()char s1100;char s2;cins1s2;delchar(s1,s2);return 0;void delchar(char *s1,char s2)for (int i=1;*(s1+i)!=0;i+)if (*(s1+i)=s2)for (int j=0;*(s1+i+j)!=0;j+)*(s1+i+j)=*(s1+i+j+1);cout#include using namespace std;int check(int a,int b,int c);double s(double a,double b,double c);int main()double a,b,c;cinabc;if (check(a,b,c) coutcfun (int n,int k);pow10 (int x);int main()int n,k;cinnk;coutn|k1) return 0;else int s;s=n/pow10(k-1);s=s%10;return s;