|
-
February 26th, 2005, 10:29 PM
#12
Junior Member
riot,
maybe u overlooked this:
" if (com1 == "help");
{
cout << "commands" << endl;
cout << "cd" << endl;
cout << "ls" << endl;
goto root;
} "
there shouldn't be any semicolon after " if( /*condition*/ ) "otherwise the instruction following it won't get executed,i think.
also why not use a switch statement?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|