if(r=='\0')//修改为if(*r=='\0'),r前需要加*
函数功能是,找出字符串s中字符串t的个数。
主串中找子串的代码啊 while(*r)一直到break;之间要增加大括号
while(*r) { if(*r == *p) { r++; p++; } else break; }