I am not sure what you are trying to do here doc...
but if you want a hotfix:
{
#define EASY_LEVEL 1
#define MEDIUM_LEVEL 2
#define HARD_LEVEL 3
#define END 4
int Option;
bool Word_Complete = false;
std::cout<< "Game intructions\n";
std::cout<< "Please select a difficulty level\n";
std::cout<< "1=Easy\n";
std::cout<< "2=Medium\n";
std::cout<< "3=Hard\n";
do
{
std::cin>> Option;
if (Option == EASY_LEVEL)
{
std::cout<< "Display scambled word Easy\n";
Word_Complete = true;
}
else if (Option == MEDIUM_LEVEL)
{
std::cout<< "Display scambled word Medium\n";
Word_Complete = true;
}
else if (Option == HARD_LEVEL)
{
std::cout<< "Display scambled word Hard\n";
Word_Complete = true;
}
else
{
return 0;
}
}
while (Option != END);
}
Bookmarks