This first Dowhile loop is saying "expected unqualified-id" at the do and while parts. What does that mean
do {
do
{
do
{
std::cout << "Give me a test result or grade from 0 to 100 for class"<< 1 << std::endl;
std::cin >> mathaverage[mathtestcount];
loopresult=1;
if ((mathaverage[mathtestcount]> 100) || (mathaverage[mathtestcount] <0 ))
{
std::cout << "That isn't a grade"
<< std::endl;
loopresult = 0;
}
}while (loopresult==0);
std::cout << "Do you have another grade for me 1 for Yes or 0 for No" << std::endl;
std::cin >> answer;
mathtestcount--;
counter++;
if (answer == 1 )
{
std::cout << "Okay" << std::endl;
gradeloop=1;
}
else
{
std::cout << "Let's average some grades then" << std::endl;
gradeloop=0;
}
}while (gradeloop != 0 && mathresult == 1);
counter2=counter;
do {
mathfinalaverage += mathaverage[counter];
counter--;
} while (counter>-1);
std::cout << "These were your math tests" << displaymathaverage << "Your average is:" << std::endl << mathfinalaverage/counter2;
}while (mathresult == 1 && );
it would be a lot easier if you had this in [ code] [ /code] brackets. and it looks like the && would be the problem. it would also help if you posted all of your code