๐Ÿ… ๋ฐฑ์ค€ 2557 : Hello World (C++, PHP, Javascript)

๋ฌธ์ œ

Hello World!๋ฅผ ์ถœ๋ ฅํ•˜์‹œ์˜ค.

์ž…๋ ฅ

์—†์Œ

์ถœ๋ ฅ

Hello World!๋ฅผ ์ถœ๋ ฅํ•˜์‹œ์˜ค.

์˜ˆ์ œ ์ž…๋ ฅ
์˜ˆ์ œ ์ถœ๋ ฅ

Hello World!

์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ถ„๋ฅ˜

  • ๊ตฌํ˜„

ํ’€์ด

๋‹จ์ˆœํžˆ Hello World! ๋ฅผ ์ถœ๋ ฅํ•˜๋ฉด ๋œ๋‹ค

PHP
<? echo "Hello World!";
CPP
#include <iostream>
using namespace std;

int main() {
    cout << "Hello World!";
    return 0;
}
JavaScript
console.log("Hello World!");

์ˆ์ฝ”๋”ฉ ํ’€์ด

php๋Š” <?php ?> ํƒœ๊ทธ ๋ฐ–์˜ ๋ฌธ์ž๋Š” ๊ทธ๋Œ€๋กœ ์ถœ๋ ฅํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์•„๋ž˜ ์ฝ”๋“œ๋„ ์ •๋‹ต์œผ๋กœ ์ฒ˜๋ฆฌ๋œ๋‹ค

PHP
Hello World!
## ์ˆ์ฝ”๋”ฉ ํ’€์ด
php๋Š” `<?php ?>` ํƒœ๊ทธ ๋ฐ–์˜ ๋ฌธ์ž๋Š” ๊ทธ๋Œ€๋กœ ์ถœ๋ ฅํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์•„๋ž˜ ์ฝ”๋“œ๋„ ์ •๋‹ต์œผ๋กœ ์ฒ˜๋ฆฌ๋œ๋‹ค