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的東西我們老師并沒有解釋到很深
我也懂得不是很多
