왜
char은 문자열이 출력되고
int는 주소가 출력됨?
cout을 뜯어보지그래?
일단 printf부터 출력해보자
http://www.cplusplus.com/reference/ostream/ostream/operator%3C%3C/이거랑http://www.cplusplus.com/reference/ostream/ostream/operator-free/이걸 읽어보자
ㅇㅋ
cout 자체에 printf의 %s처럼 자체 파싱기능이 있지않을까
<< 연산자 오버로딩이 그렇게 되있나보지.
cout을 뜯어보지그래?
일단 printf부터 출력해보자
http://www.cplusplus.com/reference/ostream/ostream/operator%3C%3C/
이거랑
http://www.cplusplus.com/reference/ostream/ostream/operator-free/
이걸 읽어보자
ㅇㅋ
cout 자체에 printf의 %s처럼 자체 파싱기능이 있지않을까
<< 연산자 오버로딩이 그렇게 되있나보지.