摘要: #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 羿龙 阅读(87) 评论(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 羿龙 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;int main(){float a;a=2.4; cout<<a<<endl;return 0; } 阅读全文
posted @ 2017-09-21 21:33 羿龙 阅读(85) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;int main(){unsigned long int a;a=123456789012345; cout<<a<<endl;return 0; } 有错误不知道怎么修正!!! 阅读全文
posted @ 2017-09-21 21:26 羿龙 阅读(115) 评论(1) 推荐(0) 编辑