int North, north;
cout << "You enter the forest, where would you like to go.\n" << endl;
cin >> North;
int Yes;
cout << "You appear in front of a cave, you see a sign saying. Canifis Cave BEWARE!\n" << endl;
cout << "Are you going to enter. (1.Yes/2.No?)\n" << endl;
cin >> Yes;
cout << "You enter the cave.. It is lit by torches only going westward. Are you going to follow the lit path? (Yes/No)\n" << endl;
cin >> Yes;
cout << "You see the the goblins.\n" << endl;
cout << "They are asleep and you see the Sword Of A Thousand Truths against the wall on a makeshift stand.\n" << endl;
int pickOption;
cout << "You can either kill the goblins by throwing a torch off the wall on them and retrieve the sword.\n";
cout << "Or you can just quietly take it and leave\n" << endl;
cout << "1 - Kill goblins with torch then take The Sword Of A Thousand Truths.\n" << endl;
cout << "2 - Take The Sword Of A Thousand Truths quietly and leave.\n" << endl;
cin >> pickOption;
switch (pickOption)
{
case 1:
cout << "The Goblins burned to death, congratulations!. you retrieve The Sword Of A Thousand Truths.\n" << endl;
cout << "You make your way back to Doric and give him the family heirloom he thanks you.\n";
cout << "You then leave and continue on your journey after finishing Doric's Quest.\n";
cout << "CONGRATULATIONS ON COMPLETEING DORIC'S QUEST!!\n" << endl;
break;
case 2:
cout << "You sneak by the goblins, retrieve the family heirloom and make your way out the cave unnoticed.\n" << endl;
cout << "You make your way back to Doric and give him the family heirloom he thanks you.\n";
cout << "You then leave and continue on your journey after finishing Doric's Quest.\n";
cout << "CONGRATULATIONS ON COMPLETEING DORIC'S QUEST!!\n" << endl;
break;
}
return 0;
}
的北上部分後,它不允許你在CIN爲它只是跳過的問題和職位的所有COUT其餘信息類型任何人都可以幫忙嗎?我不知道如何解決它
它沒有工作:( – BrandoG 2015-03-31 17:16:10