First time asking a question, hopefully I get the format correct. I am using Xcode4. The following snippet of code will not build. Just curious if anyone had input.
...
cout << "This program will calculate the area of a rectangle or a triangle.\n" <<
1 do
{
cout << "Enter the first letter of the shape you wish to calculate. " << endl;
cout << "Shape: ";
cin >> shape;
}
while ((shape != 'r') || (shape != 'R') ||...;
I have a '1' to signify the line that is highlighted as the error. The message says "Expected Expression" with no other details. Sometimes it will say what it expected such as a parenthesis or brace, etc. Thank you in advance for any input.
Yes, I do now. I had that statement inside the do statement with the other cout starting with "Enter..." Well I decided to move it out of the do statement and didn't account for the ;. Thank you.