I am doing the text-based adventure project and am stuck. I want the player to just type start then the game begins. After this is where I planned on putting in my story and choices. I will paste the code here. Can someone tell me what I am doing wrong. I am not getting any errors. But after I type in start it just repeats the phase Type Start to Begin Adventure?
#include
int main () {
std :: cout << “Welcome to A NIGHT AT THE ARCADE\n”;
std :: cout << “A text base adventure\n”;
std :: cout << “Written By: F M\n”;
char start;
for (int i = 0; i < 3 && start != ‘A’ ; i++) {
std::cout << “Type Start to Begin the Adventure\n”;
std::cin >> start;
}
switch (start) {
case ‘A’:
std::cout << “Game start\n”;
break;
}
}