Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

谁能解释下面的问题??

Posted by 2004huangyimin at 2006-04-06 23:13:56 on Problem 2810
我弄了一个队列,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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator