实例:编写在字符串中查找某字符的函数
编程实现:
#include<iostream>
using namespace std;
char *strchr(char *str,char c)
{
while(*str!='\0')
if(*str==c)
return str;
str++;