Hi all.
I have found some tutorials online, I believe they were from some university classes, and one from a guy named Juan Soulie.
I seem to have solved the bulk of my issues, yet have one last one-- that I can identify.
For some reason that I still don't understand, I keep getting a c2059 error, stating that return is a syntax error.
int main(void)
{
do
{
cout << " Copyright 2001, Welcome to the Angle Finder Program. " << endl;
cout << " This program is designed to take only numeric values. " << endl;
cout << " Make certain you only input numbers. Otherwise it will exit. " << endl;
cout << " Please choose: 1 for the Hip/Valley Angle. " << endl;
cout << " 2 for the Cricket Valley Angle. " << endl;
cout << " 3 for the Ridge Angle " << endl;
cout << " 0 to exit. " << endl;
char ch;
cin >> ch;
switch (ch)
{
case '1' : int HipValley(int& Rise1, int& Rise2, double& Eave, float& a);
// this is the Hip/Valley choice.
break;
case '2' : int CricketValley(int& Rise1, int& Rise2, double& Eave, float& a, float& Width);
// this is the cricket valley choice.
break;
case '3' : int RidgeAngle(int& Rise1, int& Rise2); // this is the Ridge Angle choice.
break;
default : return 0; // this will end the routine.
} while (ch != 27);
}
return 0; //line 186
}
This is the error:
e:\..folder path.....\steveangle.cpp(186) : error C2059: syntax
I've checked my '{' braces, and everything else seems to work, but it keeps calling this error.