Sorry if this come of as trivial, but while I am currently trying to learn code, I am frustrated by an error message that seems to make no sense.
I receive the error: 'else' without a previous 'if'
But there is an if right above the else.
cin >> drink;
if ( drink == 1 );
cout << "You selected Dr. Pepper. Thank you for completing the survey.";
else if (drink == 2);
cout << "you selected Sprite. Thank you for sompleting the survey.";
Help would be greatly appreciated