Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
7
Task/Hello-world-Text/Objective-C/hello-world-text-1.m
Normal file
7
Task/Hello-world-Text/Objective-C/hello-world-text-1.m
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
|
||||
int main() {
|
||||
@autoreleasepool {
|
||||
NSLog(@"Hello, World!");
|
||||
}
|
||||
}
|
||||
9
Task/Hello-world-Text/Objective-C/hello-world-text-2.m
Normal file
9
Task/Hello-world-Text/Objective-C/hello-world-text-2.m
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
|
||||
int main() {
|
||||
@autoreleasepool {
|
||||
NSFileHandle *standardOutput = [NSFileHandle fileHandleWithStandardOutput];
|
||||
NSString *message = @"Hello, World!\n";
|
||||
[standardOutput writeData:[message dataUsingEncoding:NSUTF8StringEncoding]];
|
||||
}
|
||||
}
|
||||
8
Task/Hello-world-Text/Objective-C/hello-world-text-3.m
Normal file
8
Task/Hello-world-Text/Objective-C/hello-world-text-3.m
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
|
||||
int main() {
|
||||
@autoreleasepool {
|
||||
NSString *message = @"Hello, World!\n";
|
||||
printf("%s", message.UTF8String);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue