• #include <iostream>

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/20c6817c-e4d1-432e-b669-27b593ef315e/_2021-03-12__2.15.53.png

std 네임스페이스에 속한 cin, cout객체는 <iostream>클래스내에 있는 인스턴스이다.

• cout - 출력 (printf 역할)

❈ endl : 개행문자

std::cout << "Hello World" << std::endl;

• cin - 입력 (scnaf 역할)

std::cin >> name;

• using namespace std;

위의 문장을 맨위에 추가하면 std:: 생략할 수 있음