반응형 cstring vs string 차이 반응형 (1) 썸네일형 리스트형 [C/C++]cstring vs string.h vs string 스트링클래스 차이(C-strings vs std::string) [C언어, C++언어, JAVA언어 라이브러리 및 함수 메서드 링크 ] [C/C++] string은 문자열을 담는 클래스잖아요? 하지만 헤더를 '#include'이나 '#include'로 놓고 문자열을 출력해보면 빨간 줄!! 불가능하다고 뜨는 걸 본적이 있어요. 그런데 이 헤더선언문을 #include으로 바꿔주면 빨간 줄이 뜨고 컴파일이 잘 됩니다. 도대체 무슨 차이가 있는 걸까요~? cstring vs string.h The 'cstring' header provides functions for dealing with C-style strings - null-terminated arrays of characters. This includes functions like 'strlen' and 'strcp..
최신 댓글