728x90
String to std::string
String arduinoStr = "test123";
std::string stdStr(arduinoStr.c_str(), arduinoStr.length());
std::string to String
std::string test = "Hello";
String test_String = String(test.c_str());
728x90
'Done > C++_Python' 카테고리의 다른 글
[Python] exe file 생성 auto-py-to-exe , pyinstaller gui version (0) | 2024.01.18 |
---|---|
[Ubuntu-python] glob file read / sorted (0) | 2023.12.06 |
[C++] Smart Pointer (Unique pointer, shared pointer) [1] (0) | 2023.09.02 |
[C++] Mutex 누구야? (0) | 2023.08.19 |
[C++] 문서화 Doxygen 사용하기 (0) | 2023.07.09 |