#include <iostream>
#include "sushi.h"
using namespace std;
int main()
{
do{
......sushi go;
......string x; <----------------------------Declared x here
......cout << "wanna use a banana?" << endl;
......cin >> x;
...if (x=="yep"||x=="OK"||x=="yes"||x=="y"||x=="yeah"){
......go.math();
......go.BANANA();
...}else{
......cout << "you son of a ...";
......}
...}while (x==!"yep"||x==!"OK"||x==!"yes"||x==!"y"||x==!"yeah");<----error here
...return 0;
}
Error reads: 'x' was not declared in this scope. How do I fix this?
P.S The sushi class does not matter, that is all perfect. Also, the dots are to represent my tabbing to make it easier to understand.