Guest
Login
跳过导航链接

Compile Error:

  : In function 'int main()':
:7:31: error: cannot convert 'std::__cxx11::basic_string<char>::c_str' from type 'const char* (std::__cxx11::basic_string<char>::)() const noexcept' to type 'const char*'
    7 |                 int n = strlen(string1.c_str));
      |                         ~~~~~~^~~~~~~~~~~~~~~

  

Zhe Jiang University Of Technology Online Programming Space Beta1.3
Designed & Developped By Jin Qiwei
Refactored By cb@zjut.edu.cn , QQ Group: 723311416  All Copyright Reserved 2006-
906