Использование цикла While или For C++
Мне нужно сделать так что бы когда ты неверно отвечал на вопрос что ты выберешь он возвращал тебя к вопросу, единственное что я знаю что тут надо работать с циклами, помогите пожалуйста!
cout << "You are Freddy Fazbear, and you currently got some nice little Freddy Fazbears, and you should make a party for them." << endl;
cout << "You need to pick a place to have fun, Bucket of Freddy Fazbear or Room for parties, what will you choose? " << endl;
getline(cin, d);
if (d == "Room for parties")
{
cout << "While you had fun more little Fazbears want to join, let them in? " << endl;
cin >> d;
if (d == "No")
{
cout << "You don't let them in and upset Fazbears left you and found another place to have fun! GOOD ENDING" << endl;
cout << "Congraculations! You opened one of the endings, now press enter to open more!" << endl;
system("pause");
}
else if (d == "Yes")
{
cout << "You let them in and they destroyed the room and you will get Fired... BAD ENDING " << endl;
cout << "Congraculations! You opened one of the endings, now press enter to open more!" << endl;
}