Purrenhage 0 Newbie Poster

I am learning C++. This class project was to write a program that will let you enter a diver's first and last name and city. Also 5 judges results along with the difficulty for the course. Then display the results. It is suppose to ask if you want to enter another diver. I cannot figure out why it is not looping the program at the end.

Here is the error I get back
1>------ Build started: Project: LAB3, Configuration: Debug Win32 ------
1>Compiling...
1>LAB3.cpp
1>y:\d02828527\documents\visual studio 2008\projects\lab3\lab3\lab3.cpp(116) : warning C4551: function call missing argument list
1>y:\d02828527\documents\visual studio 2008\projects\lab3\lab3\lab3.cpp(116) : error C2568: 'identifier' : unable to resolve function overload
1>Build log was saved at "file://\\ilabss\home$\D02828527\Documents\Visual Studio 2008\Projects\LAB3\LAB3\Debug\BuildLog.htm"
1>LAB3 - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

// this program is designed to get the drivers name and score from the scores for the competition and display the results.
    

#include <iostream>  
#include <string>
#include <iomanip>
using namespace std;

char firstname[50];  

char lastname[50];  

char city[20];

using namespace std;
int main()



{  
// Step 1: Here we are asking for the name and city of the driver
	cout << "Enter your first name\n";  
	cin >> firstname;  
    
		cout << "Enter your last name\n";  
		cin >> lastname;

			cout << "Enter City\n";  
			cin >> city;  

// Asking the scores for the test scores and computing the result
			
// Step 2: score 1 enter score
			double score;
				cout << "judge 1 enter score 1 - 10: ";	
				cin >> score;
					while (score >= 11){
					cout << "Invaild number judge 1 please renter a number from 1 to 10: ";
					cin >> score;}
					
				
// Step 2: score 2 enter score
				//double score;
				cout << "judge 2 enter score 1 - 10: ";	
				cin >> score;
					while(score >= 11){
					cout << "Invaild number judge 2 please renter a number from 1 to 10: ";
					cin >> score;}
		
// Step 2: score 3 enter score
			//double score;
				cout << "judge 3 enter score 1 - 10: ";	
				cin >> score;
					while (score >= 11){
					cout << "Invaild number judge 3 please renter a number from 1 to 10: ";
					cin >> score;}
			
// Step 2: score 4 enter score
				//double score;
				cout << "judge 4 enter score 1 - 10: ";	
				cin >> score;
					while (score >= 11){
					cout << "Invaild number judge 4 please renter a number from 1 to 10: ";
					cin >> score;}	
			
// Step 2: score 5 enter score
				//double score;
				cout << "judge 5 enter score 1 - 10: ";	
				cin >> score;
					while (score >= 11){
					cout << "Invaild number judge 5 please renter a number from 1 to 10: ";
					cin >> score;}
					
// Step 3 enter the diffacultly
				double course;
				cout << "What was the degree of difficulty? \n";  
				cin >> course;
					while (course < 1 || course > 1.67){
					cout << "Invaild number course difficulty is 1 - 1.67 please  renter a number: ";
					cin >> course;}

//Here we are displaying the results
		cout << "Your first name is:" << firstname << endl;  
		cout << "Your last name is:" << lastname << endl;  
		cout << "The city is:" << city << endl;  




// Step 4 Finding the avg and dropping the highest number and the lowest number
//double score = 0;
double sum = 0;
double high = 10;
double  low = 0;

sum += score;
if (score > high)
high = score;
if (score < low)
low = score;


sum -= high;
sum -= low;
cout << setprecision(2) << fixed;
cout << "High was " << high << endl;
cout << "Low was " << low << endl;
cout << "Your total is " << sum << endl;
cout << "The average is " << sum / 3 * course << endl;
				 
// This part is asking if you have another diver to enter.
char again;
cout << " Do you have another diver? ";
cin >> again;
cin.ignore();
while (again == 'y' || again == 'Y');endl;


    return 0;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.