【C++标准库】字符串

string filename = "test.cpp"; string::size_type idx = filename.find('.'); //size_type是string class定义的一个无正负号整数类型,size_type类型取决于string class的内存模型 //idx不能定义为int或者unsigned类型,否则与string::npos的比较动作无法有效运行 if
相关文章
相关标签/搜索