C++문법 (15) 썸네일형 리스트형 iterator 사용법 vector::iterator low = lower_bound(v.begin(), v.end(), tmp); *low = tmp; 배열의 크기는 sizeof(배열이름)/sizeof(배열자료형) int arr[81]; cout front(), top()는 큐와 스택의 size()가 존재하는 경우에만 사용 가능 char은 '', string은 "" getline() 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.. 문자(char), 문자열(string) 길이 char은 strlen(변수명); string은 변수명.size(); 변수명.length(); 숫자 맨 뒤에서 하나씩 빼고 제거할 때 int n, num; sum += n % 10; n = n / 10; 이전 1 2 다음