模擬C函數庫strstr()函數

函數返回一個指針,它指向字符串strCharSet首次出現於字符串string中的位置,若是沒有找到,返回NULL。函數 const char * MyStrStr(const char * string, const char * strCharSet) { char * p1 = const_cast<char *> (string); //去常量性 char * p2 = const_
相關文章
相關標籤/搜索