C++
Hello World
#include <iostream> // i는 input, o는 output
// cpp에서 제공하는 헤더파일은 <> 를 통해 불러오고, 사용자 정의 헤더 파일은 "" 를 통해 불러온다.
using namespace std;
int main() { // cpp이 시작되면 main을 제일 먼저 찾고 실행한다. (시작점/진입점)
cout << "Hello, World!" << endl; // using namespace std; 가 없으면 std::cout 이런식으로 작성해야한다.
// cout → console output
// endl → end line (개행 - 한 줄 띄기)
return 0;
}
