摘要: 大学的日子过的是很快的,同日子一起流失的是我们的智慧和精力斗志,尤其是我们学计算机的大学生,切不可丢失智慧,蹉跎斗志,在这个发展迅速的数字时代我们可以驰骋在世界的巅峰,但我们更容易荒废学业跌倒在无底的深渊,决定我们成功与否的关键不是学会如何在社会中变得灵活不是学会怎样社交甚至不是学会怎样做一个完善的人。作为学计算机的大学生,我们更重要的是放大目光,开阔眼界,养成饥渴的学习态度,把眼光砸到信息的每一个角落。 阅读全文
posted @ 2012-12-18 20:11 _一千零一夜 阅读(125) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;#define p 3.1415926int main(){float r,h,y1,y2,q1,q2,v;cout>r>>h;y1=2*p*r;y2=p*r*r;q1=4*p*r*r;q2=3.0/4.0*p*r*r*r;v=y2*h;cout<<setiosflags(ios::fixed)<<setiosflags(ios::right)<<setprecision(2);cout<<setw(10)<<y1<<endl;c 阅读全文
posted @ 2012-12-18 19:47 _一千零一夜 阅读(94) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;string str1,str2,str3,z;int main(){void exchenge(string *a,string *b);string *a,*b,*c;cin>>str1>>str2>>str3;a=&str1;b=&str2;c=&str3;exchenge(a,b);exchenge(a,c);exchenge(b,c);cout*b){z=*a; *a=*b; *b=z;} 阅读全文
posted @ 2012-12-18 19:44 _一千零一夜 阅读(84) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;int main(){int a,b;int *p1,*p2,*p;cin>>a>>b;p1=&a;p2=&b;if(*p1<*p2){p=p1; p1=p2; p2=p;}cout<<endl;cout<<*p1<<" "<<*p2<<endl;return 0; 阅读全文
posted @ 2012-12-18 19:41 _一千零一夜 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;int main(){int i=0,j=0;char a[80],b[40];cin>>a;cin>>b;coutusing namespace std;int main(){int i=0,j=0;char a[80],b[40];cin>>a;cin>>b;cout#includeusing namespace std;int main(){string a,b;cin>>a;cin>>b;a=a+b;cout<<a<<endl;retu 阅读全文
posted @ 2012-12-18 19:39 _一千零一夜 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;int main(){int i,j=0,A=0,b=0,data=0,other=0,space=0;char a[3][80];for(i=0;i>a[i]; for(j=0;j='A'&&a[i][j]='a'&&a[i][j]='0'&&a[i][j]using namespace std;int main(){int i,j=0,A=0,b=0,data=0,other=0,space=0;char a[3][80];for( 阅读全文
posted @ 2012-12-18 19:36 _一千零一夜 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;int main(){int i=0;char a[80];gets(a);cout='a'&&a[i]='A'&&a[i]<='Z') a[i]=155-a[i];i++;}cout<<a<<endl;return 0;} 阅读全文
posted @ 2012-12-18 19:34 _一千零一夜 阅读(104) 评论(0) 推荐(0) 编辑