色んなプログラミング言語でHello Worldを表してみた

CREATE

Hello worldとは

pythonでのHello World

簡単に言えば画面にHello Worldと表示させるプログラムの事を示します。

パソコンやスマホの画面に「Hello World」という言葉を表示してね!という事です。

プログラムとは

ちなみにここでのプログラムとは、コンピュータにやってほしい事を命令するという意味です。

一般的にプログラムとは

物事を行う手順のもくろみ

予定の計画表・コンピュータによる処理法を具体的に計算機向きに指示した表現

Oxford Languagesの定義より

とされています。

プログラミングとは

プログラミングとは、プログラムを書く=プログラミングと定義されています。

パソコンやスマートフォンにこれから行うべき行動を示す取扱説明書を作成するという表現もできます。

Hello Worldの起源と使用目的

Hello world!

Hello Worldの使用目的

使用目的

Hello worldの使用目的では、プログラミングを初めて使う際や新しくプログラミングソフトを動かす時の習慣として一般的に使われています。その為に世界一簡単で分かりやい為、世界一有名なプログラムの一つでもあります。

起源

スポンサーサイト

「プログラミング言語C」通称K&R (1978年)が起源とされています。著作者は

  1. ブライアン・カーニハン
  2. デニス・リッチー

です。それぞれ見ていきましょう。

プログラミング言語Cの著作者

ブライアン・カーニハン

出身国:カナダ

出身校:トロント大学・プリンストン大学

多くのプログラミング言語で使用されている「Hello World」ですが、きっかけは彼が研究所で書いたB言語の使い方にて使われたものです。

B言語とは

C言語の元になったプログラミング言語です。一般的にはCPL→BCPL→B言語→C言語に発達していったと言われています。

デニス・リッチー

出身国:アメリカ

出身校:ハーバード大学

C言語の開発者です。また、OS(プログラミングを動かす為の基本プログラミング)の開発者でもあります。

リッチーはレーダーの下にいた。彼は有名人というわけでは全くないが、…あなたが顕微鏡でコンピュータの中を見ることができたなら、彼の仕事をあらゆる箇所で見つけるだろう」

 Paul E. Ceruzzi

Python言語でのHello World

print('Hello World')

一行で終わります。

pythonでは画面に生じさせる事をprintと表現します。

C言語でのHello World

 #include <stdio.h>
 int main(void)
 {
     printf("Hello, world!\n");
     return 0;
 }

#include <stdio.h>とはprintfを使う為に必要です。

int main(void)とはプログラムを実行するとまず呼び出される関数であるmain。

C言語では画面上に出力する事をprintfと表現します。

プログラムを終了した事をOS(プログラムを動かす為に必要な基本プログラム)に知らせる為にreturen 0と表現します。C言語では

「returenで返す」という表現をよく使ったりします。

C++言語でのHello World

#include <cstdio>

int main()
{
    std::puts("Hello, World");
}

C言語を発展した言語であるC++言語はC言語とあまりプログラムは変わりません。

PHP言語でのHello World

<?php   echo "Hello World!"; ?>

ホームページなどのWEB上(サイト・ブログ・YOUTUBE等の動画サイト)で使われている様座な機能を動作させるのに必要な言語の一つです。同じくホームページなどのWEB上で使われている言語の一つに「javascript」があります。

ここではechoが画面上に出力させる事です。

B言語でのHello World

main(){
   extrn a,b,c;
   putchar(a); putchar(b); putchar(c); putchar('!*n');
 }
 a 'hell';
 b 'o, w';
 c 'orld';

B言語では4文字以上の文字出力が出来なかった為、いちいち関数を定義する必要がありました。

HTMLでのHello World

<h2>Hello World</h2>

もともとWeb用に作られた言語は簡単ですね。

Hello World映画

Hello WorldというSFアニメもあります。

まとめ

「Hello World」日本語化したら「こんにちは 世界」です。

プログラムの登場によって、私たちの世界は大きく変わりました。

2021年、今やスマートフォンやパソコンを使う人が多いこの時代 まさしく 機械にとって

こんにちは 世界 ですね。

Hello World

コメント

  1. As soon as I discovered this internet site I went on reddit to share some of the love with them.

    https://www.zoritolerimol.com

  2. I and my pals were found to be looking through the great tactics located on the blog then instantly came up with an awful feeling I had not expressed respect to the website owner for those secrets. All of the guys came totally thrilled to read through all of them and have now surely been taking advantage of those things. Thanks for indeed being well helpful as well as for figuring out this sort of great resources millions of individuals are really wanting to be aware of. Our sincere regret for not expressing appreciation to sooner.

    https://www.zoritolerimol.com

  3. I got what you intend, regards for putting up.Woh I am thankful to find this website through google. “Don’t be afraid of opposition. Remember, a kite rises against not with the wind.” by Hamilton Mabie.

    https://nftepubs.com/epub-profile.php?symbol=book-55323

  4. Heya i am for the first time here. I found this board and I find It really useful & it helped me out a lot. I hope to give something back and help others like you aided me.

    https://nftepubs.com/epub-profile.php?symbol=book-25498

  5. wonderful post, very informative. I wonder why the other specialists of this sector do not notice this. You should continue your writing. I’m confident, you’ve a great readers’ base already!

    https://nftepubs.com/epub-profile.php?symbol=book-4275

  6. I have learn a few good stuff here. Certainly worth bookmarking for revisiting. I surprise how so much attempt you set to make this type of fantastic informative website.

    https://nftepubs.com/epub-profile.php?symbol=book-8932

  7. I’m not that much of a internet reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come back later on. All the best

    https://nftepubs.com/epub-profile.php?symbol=book-66697

  8. I want to express some thanks to this writer for rescuing me from this setting. Right after exploring through the online world and getting suggestions that were not beneficial, I figured my life was well over. Being alive minus the strategies to the issues you’ve fixed through your main website is a serious case, and the kind that might have in a negative way affected my entire career if I hadn’t discovered your web page. Your own skills and kindness in playing with all areas was invaluable. I am not sure what I would have done if I hadn’t come across such a point like this. I am able to at this point relish my future. Thanks a lot so much for this reliable and results-oriented help. I won’t think twice to recommend your web sites to any person who desires care on this issue.

    https://nftepubs.com/epub-profile.php?symbol=book-63000

  9. Very superb visual appeal on this web site, I’d rate it 10 10.

    https://nftepubs.com/epub-profile.php?symbol=book-54080

  10. Good V I should certainly pronounce, impressed with your site. I had no trouble navigating through all the tabs and related information ended up being truly simple to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or anything, site theme . a tones way for your client to communicate. Nice task..

    https://nftepubs.com/epub-profile.php?symbol=book-58926

  11. I was studying some of your blog posts on this internet site and I conceive this web site is very informative! Continue putting up.

    https://thebestofpanamacitybeach.com/

  12. Everything is very open and very clear explanation of issues. was truly information. Your website is very useful. Thanks for sharing.

    https://nftepubs.com/epub-profile.php?symbol=book-44436

  13. Hi, I wish for to subscribe for this weblog
    to get hottest updates, thus where can i do it please assist.

    Also visit my blog; https://calgirl.in/

  14. I know this if off topic but I’m looking into starting my own weblog and was curious what all is needed to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web savvy so I’m not 100 positive. Any tips or advice would be greatly appreciated. Many thanks

    https://bulktokensender.com/avalanche-erc20-bulk-token-sender-airdrop-tool.html