string - c++ char arrays, use in cin.getline() - Stack Overflow
經安全檢測,此網站為安全網站,請放心前往原始網址!
string - c++ char arrays, use in cin.getline() - Stack Overflow
That's an unfortunate historical artifact, I believe. You can however, use the std::
getline free function instead. std::string myText; std::getline(std::cin ...