Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
除了历史之外,是否有任何理由来证明 std::ifstream/std::ofstream 类采用 char* 而不是构造 std::string 的事实?
不,构造函数 fromstd::string是在 C++11 中添加的。
std::string