What are the differences in string initialization in C++?

前端 未结 4 1649
面向向阳花
面向向阳花 2021-02-04 01:53

Is there any difference between

std::string s1(\"foo\");

and

std::string s2 = \"foo\";

?

4条回答
提交回复
热议问题