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.
可能重复: 复制初始化和直接初始化在 C++ 中有区别吗? C++中显式赋值和隐式赋值有什么区别
就那么简单。和有什么区别
std::string a("abc");
和
std::string a = "abc";