strcmp or string::compare?

后端 未结 6 2170
北荒
北荒 2020-12-03 11:28

I want to compare two strings. Is it possible with strcmp? (I tried and it does not seem to work). Is string::compare a solution?

Other tha

6条回答
  •  余生分开走
    2020-12-03 12:13

    See std::basic_string::compare and std::basic_string operators reference (in particular, there exists operator==, operator!=, operator<, etc.). What else do you need?

提交回复
热议问题