摘要: int findStr(const char* str,const char* s){ const char* p1 = s; int n = 1; //由于是出现的位置而不是下标,所以初始化为1; int count = 0; while (*str != '\0' && *p1 != '\0') 阅读全文