摘要: #include using namespace std; int main() { int x,N; cout>N; cout>x; coutN) cout<<"你没有按照要求来输入数"; else cout<<"求出在1——"<<N<<"之间可以被"<<x<... 阅读全文
posted @ 2013-07-09 08:42 时间淡无痕 阅读(434) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { cout>x; while(x!=0) { sum+=x; cin>>x; } cout<<"sum="<<sum<<endl; } 阅读全文
posted @ 2013-07-09 08:41 时间淡无痕 阅读(187) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { int x,y; char cl; cout>x>>cl>>y; switch(cl) { case '+':cout<<x<<cl<<y<<"="<<x+y;break; c... 阅读全文
posted @ 2013-07-09 08:40 时间淡无痕 阅读(204) 评论(0) 推荐(0) 编辑