
Originally Posted by
FWX
If I understood it right..
Code:
if(yourCommand == "help")
{
cout << "help" << endl;
}
Well kind of cept I know how to do that :/ Thanks for posting though I appreciate it. Anyways like... when I type in my code in a new document, it reads the page from the top to bottom. But I want it to ALYWAYS do the if statement no matter where it is in the code.
Like if I put:
Code:
cin>>yourCommand;
system("PAUSE");
system("cls");
cin>>yourCommand;
system("PAUSE");
system("cls");
I want it to print out whats in here:
Code:
if(yourCommand=="help")
{
cout<<"It worked?"<<endl;
}
Basically do the if statement for each code without putting it after each of the sections. It's hard to to explain :/