shell in c++
Hi for everyone from Poland.
At a begin sorry about my poor english because this is not my native language. (As you can see. :P)
I have a small issue with shell writting in C++:
1 2 3 4
|
if
(strcmp( command, "quit" ) && strcmp( command, "exit" ) == 0 )
{
return 0;
|
Why only second command can close running shell??
(strcmp( command, "quit" ) == 0 || strcmp( command, "exit" ) == 0 )
Try this?
Last edited on
Thank you. Now I see difference.
Topic archived. No new replies allowed.