其实这个和网络编程没什么关系。string.find(...)是什么用法?(强调,不是CString)
比如:
string str="asdfasdfasdf";
str.find(" ",0);

解决方案 »

  1.   

    好像是Java或者c#或者managed c++的代码?
      

  2.   

    basic_string::find
    size_type find(E c, size_type pos = 0) const;
    size_type find(const E *s, size_type pos = 0) const;
    size_type find(const E *s, size_type pos, size_type n) const;
    size_type find(const basic_string& str, size_type pos = 0) const;
    Each member function finds the first (lowest beginning position) subsequence in the controlled sequence, beginning on or after position pos, that matches the operand sequence specified by the remaining operands. If it succeeds, it returns the position where the matching subsequence begins. Otherwise, the function returns npos.
      

  3.   

    ( 是winsock网络编程下的C++代码 )to楼上的朋友:
    “是C++标准库带的范型算法”
    ___能稍微详细的解释下吗?
      

  4.   

    http://www.csdn.net/develop/Read_Article.asp?Id=26804