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?