摘要: #include<iostream> using namespace std; int main(){ cout<<"ÊäÈëÁ½¸öÕûÊý"<<endl; int num1,num2; cin>>num1>>num2; int Max(int x,int y); num1=Max(num1,nu 阅读全文
posted @ 2017-11-04 20:22 TOTO2 阅读(91) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int y; cout>y; if(y%4==0){ if(100%y==0){ if(y%400==0){ cout<<"zhe shi run nian"; ... 阅读全文
posted @ 2017-11-04 20:21 TOTO2 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cmath> #include <iomanip> using namespace std; int main(){ int a,b,c,s; cout<<"enter three number"<<endl; cin>>a>>b>>c; 阅读全文
posted @ 2017-11-04 20:20 TOTO2 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<iomanip> using namespace std; int main(){ double a=147.369,b=3.46168,c=-4572.67; cout<<setiosflags(ios::fixed)<<setiosflag 阅读全文
posted @ 2017-11-04 20:19 TOTO2 阅读(80) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int i,j; for(i=1;i=i;j--){ cout<<"*"; } cout<<endl; } } 阅读全文
posted @ 2017-11-04 20:17 TOTO2 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 输出一个由*号所组成的三角形,要求第一行一个*。第二行两个*。第三行三个*。以此类推。共十行。用双循环FOR完成 阅读全文
posted @ 2017-11-04 20:16 TOTO2 阅读(82) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int i,j; for(i=1;i<=60;i++){ for(j=1;j<=50;j++){ cout<<"*"; } cout<<endl; } } 阅读全文
posted @ 2017-11-04 20:14 TOTO2 阅读(136) 评论(0) 推荐(0) 编辑