This commit is contained in:
2025-09-15 21:12:04 +08:00
commit 3f58f483ff
144 changed files with 5298 additions and 0 deletions

16
we/23-1.h Normal file
View File

@@ -0,0 +1,16 @@
#include <string.h>
int countSubstring(char *A,char *B){
int count = 0;
char *p = A;
while(*p != '\0'){
p = strstr(p,B);
if(p != NULL){
count++;
p += strlen(B);
}else{
break;
}
}
return count;
}