关于编译报错 error: cannot convert ‘const std::__cxx11::basic_string‘ to ‘const char*‘ 的处理

阅读 58

2022-02-12

源代码

    if( strcmp((fields[i].name),password)!=0 )

更正

if( strcmp((fields[i].name),password.str() )!=0 )

精彩评论(0)

0 0 举报