CPlusPlus언어

Difference between r1.8 and the current

@@ -5,6 +5,7 @@

REL
See also [[C언어]], [[C와_CPlusPlus]]
[[STL,Standard_Template_Library]]

[[cin]] std::cin
[[cout]] std::cout
@@ -36,6 +37,8 @@
cout << setw(7) << (7자리로 표시할 자료);
}}}

----
<<tableofcontents>>
= Sub =
== construction / constructor ==
=== copy construction / copy constructor ===
@@ -50,6 +53,11 @@
ten commandments for c++ programmers - Everything2.com
https://everything2.com/title/ten+commandments+for+c%252B%252B+programmers

Hyperlinked C++ BNF Grammar
https://alx71hub.github.io/hcb/
alx71hub/hcb: Hyperlinked C++ BNF Grammar
https://github.com/alx71hub/hcb

= Twins =
https://pub.mearie.org/cpp


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

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



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자리로 표시할 자료);



1. Sub

1.1. construction / constructor

1.2. destruction / destructor



2. tmp bmks en

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

Hyperlinked C++ BNF Grammar
https://alx71hub.github.io/hcb/
alx71hub/hcb: Hyperlinked C++ BNF Grammar
https://github.com/alx71hub/hcb