1 개요[ | ]
- C++ .length()
- C++ 문자열 length()
C++
Copy
#include <iostream>
using namespace std;
int main() {
string s = "hello";
cout << s.length(); // 5
}
Loading
C++
Copy
#include <iostream>
using namespace std;
int main() {
string str = "abcdef";
cout << str.length() << endl; // 6
}
Loading
2 같이 보기[ | ]
3 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.