<分区>
我带着另一个可能是菜鸟的问题回来了。 xP
所以我现在有这个。
#include <iostream>
using namespace std;
int main()
{
string input;
int man;
cout<<"Choose your Character- 1.Sven or 2.Macy: ";
cin>>input;
cin.ignore();
if ( input == "Sven" ){
cout<<"Welcome to CRPG, my good Sir!";
return 0;
cin>>"Sven starts his journey at the Forest of Despair. At the beginning of the path, a fork in the road sits in his way. Which path shall you take? L or R?";
}
else if ( input == "Macy" ){
cout<<"Girls cant fight, go back: ";
}
}
是的,我已经看到并阅读了有关同一问题的其他帖子,但似乎没有一个适用于我。那么有什么方法可以解决这个问题?