09 2017 档案

摘要:#include<iostream> using namespace std; int main() { cout<<(6&3)<<endl; return 0; } 阅读全文
posted @ 2017-09-25 09:22 TOTO2 阅读(90) 评论(0) 推荐(0)
摘要:#include using namespace std; int main() { short int s=3; s+=4; cout<<"s="<<s<<endl; return 0; } 阅读全文
posted @ 2017-09-25 09:19 TOTO2 阅读(99) 评论(0) 推荐(0)
摘要:第一个 第二个 阅读全文
posted @ 2017-09-25 09:17 TOTO2 阅读(66) 评论(0) 推荐(0)
摘要:#include<iostream> using namespace std; int main() { int a=11,b=1,c; while(a>0,b<6){ c=a-2*b; cout<<c<<endl; b++; } return 0; } #include<iostream> usi 阅读全文
posted @ 2017-09-25 09:11 TOTO2 阅读(92) 评论(0) 推荐(0)
摘要:#include using namespace std; int main() { int x=8999; int value=x*1000/1000; cout using namespace std; int main() { int x=8999; int value=x/1000*1000; cout using namespace st... 阅读全文
posted @ 2017-09-25 09:07 TOTO2 阅读(123) 评论(0) 推荐(0)
摘要:#include<iostream> using namespace std; int main() { int short a; a=684318; cout<<"a="<<a<<endl; return 0; } 阅读全文
posted @ 2017-09-21 16:16 TOTO2 阅读(129) 评论(1) 推荐(0)
摘要: 阅读全文
posted @ 2017-09-21 16:14 TOTO2 阅读(75) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-09-21 16:12 TOTO2 阅读(80) 评论(0) 推荐(0)
摘要:#include using namespace std; int main() { bool flag; flag=true; if(flag) cout<<false<<endl; return 0; } 阅读全文
posted @ 2017-09-21 16:10 TOTO2 阅读(75) 评论(0) 推荐(0)
摘要:#include<iostream> using namespace std; int main() { float x; x=2.4; cout<<"x="<<x<<endl; return 0; } 阅读全文
posted @ 2017-09-21 16:05 TOTO2 阅读(113) 评论(0) 推荐(0)
摘要:#include<iostream> using namespace std; int main() { long long int a; a=12345678901234; cout<<a<<endl; return 0; } 阅读全文
posted @ 2017-09-21 16:02 TOTO2 阅读(133) 评论(0) 推荐(0)
摘要:老师真不会。。。。 阅读全文
posted @ 2017-09-21 10:56 TOTO2 阅读(122) 评论(0) 推荐(0)
摘要:#include<iostream> using namespace std; int main() { unsigned short a; short int b=-1; a=b; cout<<"a="<<a<<endl; return 0; } 阅读全文
posted @ 2017-09-13 13:08 TOTO2 阅读(104) 评论(0) 推荐(0)
摘要:#include<iostream> using namespace std; int main() { float x; int i; x=3.6; i=(int)x; cout<<"x="<<x<<",i="<<i<<endl; return 0; } 阅读全文
posted @ 2017-09-13 13:02 TOTO2 阅读(141) 评论(1) 推荐(0)
摘要:#include using namespace std; #define PRICE 30 int main() { int num,total; num=10; total=num*PRICE; cout<<"total="<<total<<endl; return 0; } 阅读全文
posted @ 2017-09-13 12:56 TOTO2 阅读(147) 评论(0) 推荐(0)
摘要:#include using namespace std; int main() { char c1,c2; c1='a'; c2='b'; c1=c1-32; c2=c2-32; cout<<c1<<' '<<c2<<endl; return 0; } 阅读全文
posted @ 2017-09-13 12:48 TOTO2 阅读(117) 评论(0) 推荐(0)
摘要:#include<iostream> using namespace std; int main() { int i,j; //i j是整形变量 i='A'; //将一个字符常量赋给整形变量i j='B'; //将一个字符常量赋给整形变量j cout<<i<<''<<j<<'\n'; return 阅读全文
posted @ 2017-09-13 12:35 TOTO2 阅读(107) 评论(0) 推荐(0)
摘要:#include using namespace std; int main() { int i,j,m,n; i=8; j=10; m=++i+j++; n=(++i)+(++j)+m; cout<<i<<'\t'<<j<<'\t'<<m<<'\t'<<n<<endl; return 0; } 阅读全文
posted @ 2017-09-13 12:26 TOTO2 阅读(98) 评论(0) 推荐(0)
摘要:#include<iostream> using namespace std; int main() { void sort(int x,int y,int z); int x,y,z; cin>>x>>y>>z; sort(x,y,z); return 0; } void sort(int x,i 阅读全文
posted @ 2017-09-12 11:24 TOTO2 阅读(121) 评论(0) 推荐(0)
摘要:#include <iostream> using namespace std; int main() { int a,b,c; int f(int x,int y,int z); cin>>a>>b>>c; c=f(a,b,c); cout<<c<<endl; return 0; } int f( 阅读全文
posted @ 2017-09-12 11:02 TOTO2 阅读(102) 评论(0) 推荐(0)