I have a code, so far I have a problem:
what is those mean?

error C2143: syntax error : missing ')' before 'constant' line 65
error C2059: syntax error : ')' line 66
error C2143: syntax error : missing ';' before '{' line 67
error C2181: illegal else without matching if line 70

//This project
//resembles how to drop one score grade out of five
//especially in tests
#include<iostream>
using namespace std;

//Main Function
void getScore(int *);
void calAverage (int, int, int, int, int);
int findLowest (int, int, int, int, int);

void main ( )
{
	int score1,score2,score3,score4,score5;
		getScore(&score1);
		getScore(&score2);
		getScore(&score3);
		getScore(&score4);
		getScore(&score5);
		calAverage(score1,score2,score3,score4,score5);
		system ("pause");
}

//Function Definitions
//****************
//score inputting*
//****************
void getScore(int *p)
{
	cout<< "\t\tMy System\n";
	cout<< "\t\t\tTest Scores\n\n";
	cout<< "Please enter score: ";
	cin >> *p;
}

//**********************
//average score process*
//**********************

void calAverage (int sc1, int sc2, int sc3, int sc4, int sc5)
{
	float average;
	int low=findLowest(sc1,sc2,sc3,sc4,sc5);
	if(low==sc1)
		average=static_cast<float>((sc2+sc3+sc4+sc5)/4);
	else if(low==sc2)
		average=static_cast<float>((sc1+sc3+sc4+sc5)/4);
	else if(low==sc3)
		average=static_cast<float>((sc1+sc2+sc4+sc5)/4);
	else if(low==sc4)
		average=static_cast<float>((sc1+sc2+sc3+sc5)/4);
	else 
		average=static_cast<float>((sc1+sc2+sc3+sc4)/4);
	cout<< "Average of four test scores is "<<average<<endl;
}

//*********************
//lowest score process*
//*********************


int findLowest(int sc1, int sc2, int sc3,int sc4, int sc5)
{
int sc;
	if (sc 1 <= sc2 && sc1 <=sc3 
			&&sc1 <= sc4 && sc1 <=sc5)
	{
		return sc1;
	}
		else if (sc2 <= sc1 && sc2 <= sc3 
			&& sc2 <= sc4 && sc2 <=sc5)
	{
		return sc2;
	}
	else if (sc3 <= sc1 && sc3 <= sc2 
			&& sc3 <= sc4 && sc3 <=sc5)
	{
		return sc3;
	}
	else if (sc4 <= sc1 && sc4 <= sc2 
			&& sc4 <= sc3 && sc4 <=sc5)
	{
		return sc4;
	}
	else 
		return sc5;

}
//End

There might be all I'm seeing is "c". ;)

There might be all I'm seeing is "c". ;)

sorry, i add what is going on including the code.

could you please re post your code wrapped in code tags? there is a space in the first variable name here

if (sc 1 <= sc2 && sc1 <=sc3 // space in the first sc1
&&sc1 <= sc4 && sc1 <=sc5)

could you please re post your code wrapped in code tags? there is a space in the first variable name here

if (sc 1 <= sc2 && sc1 <=sc3 // space in the first sc1
&&sc1 <= sc4 && sc1 <=sc5)

thxs. sorry for everything.

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.