mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-16 16:46:50 +01:00
Add Objective-C example
This commit is contained in:
23
objective-c/hellomuni/main.m
Normal file
23
objective-c/hellomuni/main.m
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// main.m
|
||||
// hellomuni
|
||||
//
|
||||
// Created by Juraj Michalek on 5/6/12.
|
||||
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
int main(int argc, const char * argv[])
|
||||
{
|
||||
|
||||
@autoreleasepool {
|
||||
BOOL isItTrue = YES;
|
||||
NSString *who = @"FI MUNI";
|
||||
if (isItTrue) {
|
||||
NSLog(@"Hello, %@!", who);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user