标签: c++ initialization
在c ++中,像本例中那样用圆括号或斜括号初始化对象之间有什么区别?
#include <iostream> #include <string> int main() { std::string x = "abc"; std::string c(x); //std::string c{x}; std::cout << "String c " << c; return 0; }