- cout (출력)
- 똑똑안녕하세요/C++ programming
- 2010. 4. 27. 16:42
#include <iostream>
using namespace std;
int main()
{
cout << "a" << endl; // a
cout << 'a' << endl; // a
cout<< "1 : " << 1 << endl; // 1 : 1
cout<< "'a' : " << 'a' << endl; // 'a' : a
cout<< "a : " << a << endl; // Error
cout<< " "string" : " << "string" <<endl; // Error
cout << " \"string\" : " << "string" <<endl; // "string" : string
return 0;
}
'똑똑안녕하세요 > C++ programming' 카테고리의 다른 글
오버로딩 / swap 함수 구현 (0) | 2010.05.12 |
---|---|
입력된 숫자 구구단 출력 (0) | 2010.05.12 |
이름 전화번호 배열에 저장 출력 (0) | 2010.05.12 |
정수 10개의 합 (0) | 2010.05.12 |
OOP project 1 (0) | 2010.04.27 |