strcmp() 用来比较字符串(区分大小写),其原型为:
    int strcmp(const char *s1, const char *s2);

【参数】s1, s2 为需要比较的两个字符串。

【返回值】若参数s1 和s2 字符串相同则返回0。s1 若大于s2 则返回大于0 的值。s1 若小于s2 则返回小于0 的值。

 

Reference:

http://c.biancheng.net/cpp/html/162.html

相关文章:

  • 2022-02-07
  • 2021-10-17
  • 2022-12-23
  • 2021-12-18
  • 2021-12-05
猜你喜欢
  • 2021-05-30
  • 2022-01-17
  • 2021-12-18
  • 2021-07-23
  • 2022-02-19
相关资源
相似解决方案