std::string s1 {“Modern C++”, 1, 3} vs std::string s1 {str, 1, 3}

前端 未结 0 996
南方客
南方客 2021-01-02 06:05

the following code confuses me:

const std::string str = "Modern C++";

std::string s1 {"Modern C++", 3};
std::string s2 {str, 3};

std::co         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题