garydavison — 2012-03-10T11:37:49-05:00 — #1
I'm teaching myself iOS application development one thing that I have found is that often I get the message "lldb" in the debugger, none of the tutorails that I have been following seem to mention this. Am I doing something wrong is there a setting that I need to change?
An example of a piece of code that I have created:
int main(int argc, const char * argv)
void myFunction(NSArray *array);
for(NSInteger n = 0; n < 30; n++)
NSLog(@"The value of n is:%ld\
Thanks for any help.
hassara — 2012-04-03T09:20:19-04:00 — #2
What output are you getting? I don't see any quoted. Also, the code you wrote probably doesn't do what you expect. The line "void myFunction(NSArray *array);" really isn't doing anything at all. The semicolon at the end is making that line a function declaration, not a definition. So technically, what's happening is, you enter main(), skip the void line, enter the first brace (which isn't preceded by a conditional or loop, so it's just like its not there), running your for() loop from 0..29, and exiting without a return value.