「Hello Worldをわかりにくくしてみた」の編集履歴(バックアップ)一覧はこちら

Hello Worldをわかりにくくしてみた」(2012/02/09 (木) 21:37:34) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

**Hello Worldをわかりにくくしてみた プログラミングにおいて初めてプログラムを作る際"Hello World"という文字列を出力する慣習があります。 本当は別の文字列を出力させてもよいのですが、昔からの慣習でHello world!と出力することが多いみたいです。 このプログラムをあえて分かりにくくするということをやってみました。 ちなみに言語はC言語です。 普通のHello worldのプログラム #include <stdio.h> int main(){ printf("Hello World!"); } わかりにくいHello world #include <stdio.h> int main(){ printf("%c%c%c%c%c%c%c%c%c%c%c%c\n",72,101,108,108,111,32,87,111,114,108,100,33); } わかりにくいHello worldその2 #include <stdio.h> #define H int #define e main(){printf("%c%c%c%c%c%c%c%c%c%c%c%c\n",72,101 #define l ,108 #define o ,111 #define W ,87 #define r ,114 #define d ,100,33);} H e l l o W o r l d ...
**Hello Worldをわかりにくくしてみた プログラミングにおいて初めてプログラムを作る際"Hello World"という文字列を出力する慣習があります。 このプログラムをあえて分かりにくくするということをやってみました。 ちなみに言語はC言語です。 普通のHello worldのプログラム #include <stdio.h> int main(){ printf("Hello World!"); } わかりにくいHello world #include <stdio.h> int main(){ printf("%c%c%c%c%c%c%c%c%c%c%c%c\n",72,101,108,108,111,32,87,111,114,108,100,33); } わかりにくいHello worldその2 #include <stdio.h> #define H int #define e main(){printf("%c%c%c%c%c%c%c%c%c%c%c%c\n",72,101 #define l ,108 #define o ,111 #define W ,87 #define r ,114 #define d ,100,33);} H e l l o W o r l d ...

表示オプション

横に並べて表示:
変化行の前後のみ表示:
目安箱バナー