当前位置:  编程语言>c/c++

C++ Strings(字符串) 成员 find_first_not_of():查找第一个与value中的所有值都不相等的字符

 
    发布时间:2014-1-19  


    本文导语: C++ Strings(字符串) 成员 find_first_not_of():查找第一个与value中的所有值都不相等的字符 find_first_not_of 语法: size_type find_first_not_of( const basic_string &str, size_type index = 0 ); size_type find_first_not_of( const char *str, size_type index = 0 ); size...

c++ strings(字符串) 成员 find_first_not_of():查找第一个value中的所有值都不相等的字符

find_first_not_of

语法:

  size_type find_first_not_of( const basic_string &str;, size_type index = 0 );
  size_type find_first_not_of( const char *str, size_type index = 0 );
  size_type find_first_not_of( const char *str, size_type index, size_type num );
  size_type find_first_not_of( char ch, size_type index = 0 );

find_first_not_of()函数:

  • 在字符串中查找第一个与str中的字符都不匹配的字符,返回它的位置。搜索index开始。如果没找到就返回string::nops
  • 在字符串中查找第一个与str中的字符都不匹配的字符,返回它的位置。搜索从index开始,最多查找num个字符。如果没找到就返回string::nops
  • 在字符串中查找第一个与ch不匹配的字符,返回它的位置。搜索从index开始。如果没找到就返回string::nops
相关主题:
find()
相关文章推荐:


站内导航:


特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

©2012-2021,,E-mail:www_#163.com(请将#改为@)

浙ICP备11055608号-3