#include <string>
std::string titleA = "Initializing a new string.";
// 这里定义了titleA,并初始化“In...”。
我的理解是,先调用default constructor生成一个empty string,然后调用operator=赋值。
不知这种理解对吗?
std::string titleA = "Initializing a new string.";
// 这里定义了titleA,并初始化“In...”。
我的理解是,先调用default constructor生成一个empty string,然后调用operator=赋值。
不知这种理解对吗?