c++ string (1) 썸네일형 리스트형 C++ string 클래스 string 헤더 추가 #include string 생성(초기화) string str = "hello"; string str("hello"); string str; str.assign("hello"); string *str = new string("hello"); // 동적할당 이용 코드 예시 string str = "abcd"; cout 이전 1 다음