cout 명령

cout << "Str_1" << Var_1 <<…<< endl;

(cout 및 endl 사이에 나열된 항목을 출력합니다.)

예:

cout << "the value of X is" << X << endl;

이 예에서 X가 5인 경우 출력은 the value of X is 5입니다.


피드백