Skip to content

Instantly share code, notes, and snippets.

@taishi41228
Created January 20, 2013 04:52
Show Gist options
  • Save taishi41228/4576732 to your computer and use it in GitHub Desktop.
Save taishi41228/4576732 to your computer and use it in GitHub Desktop.
「hello world」を表示するC言語の初歩的なプログラム。入門書でよく見られる。
#include <stdio.h>
int main(int argc, char *argv[]) {
printf("hello world\n"); // 「hello world」を表示し, 改行を一度行う.
return 0;
}
#import <Foundation/Foundation.h>
int main(int argc, char *argv[]) {
@autoreleasepool {
NSLog("hello world"); //「hello world」を表示し, 改行を一度行う.
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment