discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with NSString


From: Ivan Vučica
Subject: Re: Problem with NSString
Date: Sun, 30 Jan 2011 22:43:42 +0100

I just spotted one more mistake. scanf() should not get a pointer to pointer -- that &word should be just word. 

Regards,

Ivan Vučica
via phone

On 29. sij. 2011., at 16:03, Parag Deshpande <parag.deshpande@studioapp.com> wrote:

Hi ,

i am trying to work with NSString object.The .m(source code) file is attached with this mail.
Following is the description of my program.


I want to scan the NSString object for that i declare a char array and use stringWithCstring:arg encoding:NSASCIIStringEncoding scan is suucessful but my problem is in
while loop the condition of while i.e while(word2!=Quit) is not running .I mean when i enter "quit"
through according logic it should exit while loop and from program.
But it enter in endless loop .Please do write where am i went wrong.

Thank you.
<editor.m>
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

reply via email to

[Prev in Thread] Current Thread [Next in Thread]