<입력>
So when I die (the [first] I will see in (heaven) is a score list).
[ first in ] ( first out ).
Half Moon tonight (At least it is better than no Moon at all].
A rope may form )( a trail in a maze.
Help( I[m being held prisoner in a fortune cookie factory)].
([ (([( [ ] ) ( ) (( ))] )) ]).
.
.
enter 전 1행을 공백까지 전체 입력받고 싶을 때 getline(cin, s);
(s는 string s;)
*2021.09.22 내용 추가
cin.ignore(); //엔터 후 cin에 남은 버퍼 제거
'C++문법' 카테고리의 다른 글
배열의 크기는 sizeof(배열이름)/sizeof(배열자료형) (0) | 2020.01.24 |
---|---|
front(), top()는 큐와 스택의 size()가 존재하는 경우에만 사용 가능 (0) | 2020.01.24 |
char은 '', string은 "" (0) | 2020.01.24 |
문자(char), 문자열(string) 길이 (0) | 2020.01.23 |
숫자 맨 뒤에서 하나씩 빼고 제거할 때 (0) | 2020.01.16 |