소프트웨어전공/C++ Programming
-
C++ string 정리 (1)소프트웨어전공/C++ Programming 2021. 9. 22. 13:46
https://blockdmask.tistory.com/338 [C++] string 클래스, 문자열에 대해서 (총정리) 안녕하세요 BlockDMask 입니다. 오늘은 C++의 std::string 클래스(문자열)에 대해서 세세 하게 알아볼것 입니다. 예전 글을 보다가 제가 작성한 이 문서를 보게 되었는데요, 너무 내용이 빈약하다고 blockdmask.tistory.com 어떤 분께서 좋은 자료를 올려두어 이를 통해 공부했다. 내용이 적지 않아서 당장 필요한 것들 위주로 우선 정리! 1. string 선언 char*, char[] 과는 달리 문자열 끝에 '\0'이 들어있지 않다. Null문자가 뒤에 따로 없다는 것..! 2. string 클래스의 함수들 정리 - 양이 많아서 몇가지만 살펴보기로 했다. ..