I am using arabic plus english, why ?
Wanted to figure out how it is you keep selecting the wrong double-quote characters 'C' uses to denote string boundaries.
I am using arabic plus english, why ?
Wanted to figure out how it is you keep selecting the wrong double-quote characters 'C' uses to denote string boundaries.
3 would have worked here.
NSLog( @"stopList len: %d", [stopList count] );
NSLog( @"stopList: %@", stopList );
Wanted to figure out how it is you keep selecting the wrong double-quote characters 'C' uses to denote string boundaries.
unfortunately some people in this forum know what is the question & problem, but !!! since they have no idea of how solve the problem say :
No one said that. No one even hinted at it. They are telling you to improve your descriptions, which means they are asking you to provide complete descriptions. A complete description, even in poor English, is better than no description at all. Your first post had no description of the problem.1-improve your english
No one suggested that, either. I did say that you have a history of posts where the code doesn't do correct memory management. You started those posts by saying there was "no error". I was using that as an example of one possible meaning for "no error".2-learn memory management
Wrong. Not knowing how to use the debugger is exactly the problem.3-learn debugger using
etc
guys these are not the problem !
Yes, I ran it. Yes, I know exactly what the problem is. Yes, I know exactly how to solve it. No, I'm not going to tell you exactly how to solve it. No, I'm not going to post code that shows how to solve it. Because I think it's more important that you learn how to find and fix bugs like this by yourself.this program logically has problem! this post had 21 replies so far, you guys that make fun of this post have you suffered to put this little code in your editor and run it instead of fooling other people's post ???
unfortunately some people in this forum know what is the question & problem, but !!! since they have no idea of how solve the problem say
They are intentionally not giving you the answer, because they expect you to find it for yourself.
This is called "learning to find the answer yourself" instead of "having someone else give you the answer".
NSArray *stopList=[NSArray arrayWithObjects:@"an, @and, @by, @for, @from, @of, @the, @to,@with",nil];
NSLog(@"%@",stopList);
2011-12-14 23:51:57.242 ICrawler[3710:80f] (
"an\U201d, @\U201cand\U201d, @\U201cby\U201d, @\U201cfor\U201d, @\U201cfrom\U201d, @\U201cof\U201d, @\U201cthe\U201d, @\U201cto\U201d,@\U201cwith"
)
Thank you guys,
i have found the problem! here it is !
i got crazy with this !
right click on stoplist variable? i did but there was no Print description !Right click "Print description of stoplist"
right click on stoplist variable? i did but there was no Print description !
could you plz tell me how?
@"an
, @and
, @by
, @for
, @from
, @of
, @the
, @to
, @with"
, nil
Are you looking at it in your source code or in the debugger?
Look closely at the initializer list portion of your 'stopList' array -
Code:@"an , @and , @by , @for , @from , @of , @the , @to , @with" , nil
Please note the difference between:
"
and
and
While these Roman characters look similar they are NOT the same.
If you can't see the difference try taking a closer look.
A quick way to take a closer look is multiple hits of 'Command +'
Only one is a valid delimiter in marking the beginning AND end of a 'C' language zero terminated character string.
Thank you so much, i wish someone could have told me earlier!
Look at the code in a really big font. Or in XCode with syntax coloring.
Or run the code in the debugger, and look at the contents of the variables.
You need to run the debugger and set a breakpoint at the first line of code. Check each line to make sure the objects and values are what you expect them to be. If you don't know how to do this, search Google. If you run into problems, tell us the article you're following and where you get tripped up.