double我沒學過。。。是怎樣的command?
然后可以if(choice=='Y','y')這樣用嗎?
|
|
Term 2了。。。開始學web development了。。有問題會問 |
cout<<"Please enter the 1st manager weekly salary\n";
cin>>i;
cout<<"Please enter the 2nd manager weekly salary\n";
cin>>i;
cout<<"Please enter the 3rd manager weekly salary\n";
cin>>i;
cout<<"Please enter the 4th manager weekly salary\n";
cin>>i;
cout<<"Please enter the 5th manager weekly salary\n";
cin>>i;
cout<<"The 1st manager weekly salary is $"<<i<<"\n";
cout<<"The 2rd manager weekly salary is $"<<i<<"\n";
cout<<"The 3rd manager weekly salary is $"<<i<<"\n";
cout<<"The 4th manager weekly salary is $"<<i<<"\n";
cout<<"The 5th manager weekly salary is $"<<i<<"\n";
原帖由 虚空使者 于 2008-11-10 11:11 PM 发表
可以請大大示范第2個worker的code給我看嗎?
我對cin那4個int那里非常混亂
既然只能cin>>y[z]這一種
那我要怎樣把i,j,k,l這4個int放下去?
關于array的東西我們老師并沒有解釋到很深
我也懂得不是很多

JBTALKS.CC |联系我们 |隐私政策 |Share
GMT+8, 2026-4-27 10:33 PM , Processed in 0.081769 second(s), 19 queries .
Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.
本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved
Dedicated Server powered by iCore Technology Sdn. Bhd.