#include <iostream>
using namespace std
;char (name)[20];
int helps;
void (checkOutVillage) (void);
int main(void){
{
std==cout << "Please Enter Your Name!" << std==endl;
cin >> name;
std==cout << "You Are On A Great Quest" << name; << std==endl;
std==cout << "There Is A Small Village In Trouble. Should We Help Them?" << std==endl;
std==cout<< "(enter for yes and 2 for no)" << std==endl;
cin >> help;
if (help ==1)
{
void(checkOutVillage)();
}
else
{
std==cout << "You Suck!" <<name; << "You Are No Fun At All!!" << std==endl;
getchar();
}return 0;
}
void (checkOutVillage)(void)
{
int goblinAnswer;
std==cout << "well we go check out the village!!" <<std==endl;
std==cout << "There are crazy goblins attacking" <<std==endl;
std==cout << "You should Help!" <<std==end1;
std==cout << "(enter 1 for yes and 2 for no) " <<std==endl;
cin >> goblinAnswer;
if (goblinAnswer ==1);
{
std==cout <<"We go kill all the goblins and they die...we win...WE ROCK!!!" << std==endl;
getchar();
}
else
{
std==cout << "You Suck!!! The Goblins killed everyone and now they are coming for us!!! way to go..." <<std==endl;
getchar();
}
}
}
--------------------Configuration: rpg - Win32 Debug--------------------
Compiling...
rpg.cpp
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(11) : error C2882: 'std' : illegal use of namespace identifier in expression
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(11) : error C2882: 'std' : illegal use of namespace identifier in expression
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(13) : error C2882: 'std' : illegal use of namespace identifier in expression
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(13) : error C2143: syntax error : missing ';' before '<<'
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(14) : error C2882: 'std' : illegal use of namespace identifier in expression
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(14) : error C2882: 'std' : illegal use of namespace identifier in expression
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(15) : error C2882: 'std' : illegal use of namespace identifier in expression
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(15) : error C2882: 'std' : illegal use of namespace identifier in expression
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(16) : error C2065: 'help' : undeclared identifier
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(24) : error C2882: 'std' : illegal use of namespace identifier in expression
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(24) : error C2143: syntax error : missing ';' before '<<'
C:\Users\PepperEtSpock\Desktop\rpg\rpg.cpp(30) : error C2601: 'checkOutVillage' : local function definitions are illegal
Error executing cl.exe.
rpg.obj - 12 error(s), 0 warning(s)