摘要: #include <iostream>using namespace std;int main(){cout<<(6&3)<<endl; return 0;} 阅读全文
posted @ 2017-09-25 19:54 羿龙 阅读(90) 评论(4) 推荐(0)
摘要: #include <iostream>using namespace std;int main(){short int s=3;s+=4; cout<<"s="<<s<<endl;return 0;} 阅读全文
posted @ 2017-09-25 19:53 羿龙 阅读(79) 评论(0) 推荐(0)
摘要: #include <iostream>using namespace std;int main(){int a=3,b;b=a++;cout<<"a="<<a<<", b="<<b;return 0;} #include <iostream>using namespace std;int main( 阅读全文
posted @ 2017-09-25 19:51 羿龙 阅读(130) 评论(0) 推荐(0)
摘要: #include <iostream>using namespace std;int main(){for(int i=1;i<=11;i++){ if(i%2==1){cout<<"i="<<i<<endl; }}return 0;} 阅读全文
posted @ 2017-09-25 19:47 羿龙 阅读(94) 评论(0) 推荐(0)
摘要: #include <iostream>using namespace std;int main(){int x=8999;int value=x*1000/1000;cout<<"value="<<value<<endl;} #include <iostream>using namespace st 阅读全文
posted @ 2017-09-25 19:43 羿龙 阅读(129) 评论(0) 推荐(0)