shell in c++

poliocertes (3)
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??
ResidentBiscuit (2645)
(strcmp( command, "quit" ) == 0 || strcmp( command, "exit" ) == 0 )

Try this?
Last edited on
poliocertes (3)
Thank you. Now I see difference.
Registered users can post here. Sign in or register to post.