mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-01 04:20:39 +02:00
minor updates
This commit is contained in:
@@ -151,9 +151,9 @@ int main (int argc, const char * argv[])
|
|||||||
{
|
{
|
||||||
NSLog(@"%d,", ii++); // ii++ increments ii in-place, after using its value.
|
NSLog(@"%d,", ii++); // ii++ increments ii in-place, after using its value.
|
||||||
} // => prints "0,"
|
} // => prints "0,"
|
||||||
"1,"
|
// "1,"
|
||||||
"2,"
|
// "2,"
|
||||||
"3,"
|
// "3,"
|
||||||
|
|
||||||
// For loops statements
|
// For loops statements
|
||||||
int jj;
|
int jj;
|
||||||
@@ -161,9 +161,9 @@ int main (int argc, const char * argv[])
|
|||||||
{
|
{
|
||||||
NSLog(@"%d,", ii++);
|
NSLog(@"%d,", ii++);
|
||||||
} // => prints "0,"
|
} // => prints "0,"
|
||||||
"1,"
|
// "1,"
|
||||||
"2,"
|
// "2,"
|
||||||
"3,"
|
// "3,"
|
||||||
|
|
||||||
// Foreach statements
|
// Foreach statements
|
||||||
NSArray *values = @[@0, @1, @2, @3];
|
NSArray *values = @[@0, @1, @2, @3];
|
||||||
@@ -171,9 +171,9 @@ int main (int argc, const char * argv[])
|
|||||||
{
|
{
|
||||||
NSLog(@"%@,", value);
|
NSLog(@"%@,", value);
|
||||||
} // => prints "0,"
|
} // => prints "0,"
|
||||||
"1,"
|
// "1,"
|
||||||
"2,"
|
// "2,"
|
||||||
"3,"
|
// "3,"
|
||||||
|
|
||||||
// Try-Catch-Finally statements
|
// Try-Catch-Finally statements
|
||||||
@try
|
@try
|
||||||
@@ -187,7 +187,7 @@ int main (int argc, const char * argv[])
|
|||||||
{
|
{
|
||||||
NSLog(@"Finally");
|
NSLog(@"Finally");
|
||||||
} // => prints "Exception: File Not Found on System"
|
} // => prints "Exception: File Not Found on System"
|
||||||
"Finally"
|
// "Finally"
|
||||||
|
|
||||||
// Clean up the memory you used into your program
|
// Clean up the memory you used into your program
|
||||||
[pool drain];
|
[pool drain];
|
||||||
|
Reference in New Issue
Block a user