![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 # include<iostream> 2 # include<cstdio> 3 # include<string> 4 using namespace std; 5 int index(char *a,char *b) 6 { 7 int n=0;//父串偏移量,初始为0 8 while(a[n]!='
1 # include<iostream> 2 # include<cstdio> 3 # include<string> 4 using namespace std; 5 int index(char *a,char *b) 6 { 7 int n=0;//父串偏移量,初始为0 8 while(a[n]!='