字元检查请教
想编写一个从char*检查特定字元, 但无从入手, 请各大神指教一下例: 检查字元是 'is'
int countResult(char source[])
{
}
int main()
{
char* source = "This is an apple";
int count = 0;
count = countResult(source);
printf("Result: %d", count)//Output: Result: 2
}
2014-05-01 22:00
2014-05-01 22:05