Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
谁能解释下面的问题??我弄了一个队列,queue<string> temp,v6就warning. 改成char*就没有,并且过了,怎么回师啊 #include <iostream> #include <queue> #include <string> #include <iomanip> using namespace std; int main() { double per; double tempa,tempr; string tempu,tempv; queue<string> temp; while (1) { cin >> tempa; if(tempa<0) {break;} cin>>tempu; cin>> tempr; cin>>tempv; per = (100 * (tempa / tempr)); if ( per >= 1 ) { cout << fixed<<setprecision(1)<<tempv; cout <<' '<<tempa<<' '<<tempu<<' '; cout <<per<<'%'<<endl; } else {} } cout <<"Provides no significant amount of: "<<endl; return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator