I have an example of code that I need help understanding:
#import <Foundation/Foundation.h>
{
int main (int argc, const char *argv [])
NSAutoreleasePool *pool =[ [NSAutoreleasePool alloc] init];
NSLog [@"Testing...\n...1\n...2\n...3");
[pool drain];
retuen 0;
}
is the \n (newline command) another way to say NSLog [@"Insert text here"] without having to type in the NSLog stuff (sorry i dont know the exact terminology of this thing) ?
I know its a new line on the output. When the program launches will it simply say
Testing...
...1
...2
...3 ?
on the scree ? Is this just a program to display text ?
#import <Foundation/Foundation.h>
{
int main (int argc, const char *argv [])
NSAutoreleasePool *pool =[ [NSAutoreleasePool alloc] init];
NSLog [@"Testing...\n...1\n...2\n...3");
[pool drain];
retuen 0;
}
is the \n (newline command) another way to say NSLog [@"Insert text here"] without having to type in the NSLog stuff (sorry i dont know the exact terminology of this thing) ?
I know its a new line on the output. When the program launches will it simply say
Testing...
...1
...2
...3 ?
on the scree ? Is this just a program to display text ?