おのこもすなる Objective-C といふものを (ry
Objective-C で hello world は以下のように書ける。
#include <stdio.h> int main(void) { puts("hello world"); return 0; }
これをコンパイルするには以下のようにする。
gcc -Wall tokuhiro.m
実行結果は以下のとおり
hello world
C と同じなので簡単ですね (ぉ
Objective-C で hello world は以下のように書ける。
#include <stdio.h> int main(void) { puts("hello world"); return 0; }
これをコンパイルするには以下のようにする。
gcc -Wall tokuhiro.m
実行結果は以下のとおり
hello world
C と同じなので簡単ですね (ぉ