How can I quit a while loop in Objective C using scanf and a C character array string comparison? -


I am writing a simple test program when the user enters the login:

  Four * user enters; While (userEntry! = "EXIT") {NSLog (@ "Exit Exit"); Scanf ("% s", and user entry); }   

As it is, the loop does not come out.

Can someone explain to me what I need to do, do this work? Thanks :) "EXIT" is comparing the address of the user entry variable

string stabilized Need to compare it instead of their content, use strcmp , and read on pointers.

Comments