//统计一个长度为2的字符串在另外一个字符串中出现的次数。
1 #include <conio.h> 2 #include <stdio.h> 3 #include <string.h> 4 #include <stdlib.h> 5 int fun(char *str, char *substr) 6 { 7 char *z, *c; 8 z = str; 9 c = substr; 10 int n=0; 11 while (*z!='