
十万个为什么
8毛_
心若在,梦就在!
展开
-
十万个为什么(二)
# include # include using namespace std; int main() { string s; while(cin>>s) cout<<s[s.size()]<<endl; return 0; } 上面这段程序,在VC和C-free中运行正确,而在VS中运行则出错! 你知道其中的缘由吗?原创 2012-12-28 16:43:03 · 272 阅读 · 0 评论 -
十万个为什么(一)
# include int main() { double a; int b; while(scanf("%lf",&a)!=EOF) { b=a*100; printf("%d\n",b); } return 0; } 上面这段程序,当输入290.90时,答案是多少呢?不用编译器,你能答对吗?原创 2012-12-28 16:41:07 · 298 阅读 · 0 评论