#include <algorithm>. int main(). {. std::string s = "Hello";. char chars[s.length() + 1];. s.copy(chars, s.length() + 1);. std::cout << chars << std::endl;.
確定! 回上一頁