cannot convert 'std::basic_string' to 'const char*' for argument '1' to 'int system(const char*)'

前端 未结 6 1271
无人及你
无人及你 2020-11-29 07:18

I get this error: \"invalid operands of types \'const char*\' and \'const char [6]\' to binary \'operator+\'\" when i try to compile my script. Here should be the error:

6条回答
  •  心在旅途
    2020-11-29 07:56

    try using concatenation of string

    Statistics(string date)
        {
            this->date += date;
        }
    

    acually this was a part of a class..

提交回复
热议问题