C++ const char* with string literal in method call

前端 未结 0 638
鱼传尺愫
鱼传尺愫 2021-02-01 11:14

If I have a C++ function that takes a string parameter:

void somefun(const std::string &s)
{
  std::cout << ": " << s << std::endl         


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