C++ String을 int로 변환 문서를 참고하십시오. C++ ... int main() { string str = "123"; int n = atoi(str.c_str()); cout << n << endl; // 123 }.
確定! 回上一頁