CPlusPlus언어

proper title: C++ 언어 .... =,cpp =,cpp_language =,cpp_pl ....

새로운 pagename 필요. 'cpp'를 언급해야 함. 그리고 앞으로 C# A*등 특수문자가 들어가는 항목의 pagename 어떻게 할지 ....TBD...


REL
See also C언어, C와_CPlusPlus

cin std::cin
cout std::cout

C++ IO 입출력 조종자 (iostream)
조작자 함수
endl 개행과 flush 출력
ends 스트링의 null 출력
flush
oct, dec, hex 8/10/16 진법 사용
ws 입력에서 공백 건너뛰기 (무슨소리????)

C++ IO 입출력 조종자 (iomanip)
조작자 함수
setw(int) 필드 폭 설정
setfill(int) 문자 채우기로 설정 (?)
setbase(int) 기본 형식 설정
setprecision(int) 부동소수점 정밀도 설정
setiosflags(long) 포맷 비트 설정
resetiosflags(long) 포맷 비트 재설정

예: 소수점 이하 두 자리만 표시하기
#include <iomanip>
...
cout.precision(2);
cout << fixed;
...
cout << setw(7) << (7자리로 표시할 자료);

Sub

construction / constructor

destruction / destructor



tmp bmks en

ten commandments for c++ programmers - Everything2.com
https://everything2.com/title/ten commandments for c%2B%2B programmers