menu will be :
#include <iostream>#include <cstdlib>#include <string>void run(void){cout<<"you run away"<<endl;return map;}void fight(void){cout<<"you stay and fight"<<endl;//fight sequence}int main(void){int except;cout<<"1 = fight, 2 = run"<<endl;cin>>exceptif(except == 1){fight();}else if(except == 2){run();}else{cout<<"I said answer with 1,2"<<endl;cout<<"1 = fight, 2 = run"<<endl;cin>>exceptif(except == 1){fight();}else if(except == 2){run();}else{cout<<"I said answer with 1,2"<<endl;}}system("PAUSE");return 0;}
Very roughly like that
[edited by - TheNerd Tk421 on August 11, 2003 5:43:06 PM]