#include <iostream>

using namespace std;

int main() {

cout << "Hellow World!";

return 0;

}







#include <iostream>  : c++ 에 있는 입출력을 위한 헤더파일 ( input / output stream) 입출력 스트림

using namespace std : c++ 표준에서 제공하는 다양한 요소들은 namespace std 안에 선언되어 있어 cout를 사용 할 수 있다.

using namespace std 가 존재 하지 않는 경우 


위와 같이 std:: 를 사용해주어야 한다. std 를 선언하므로써 축약이 가능


cout  : (console output) 화면에 출력

같이 쓰는 명령어 

cout << "Hellow World!" << endl;


endl : (End Line) 줄의 끝 , new line으로 시작


'개발자 > C++' 카테고리의 다른 글

C++ 클래스와 객체 사용법  (0) 2015.02.12
블로그 이미지

김진리

,