为何第二个测试样例会影相下一个的答案
2011-09-19
问题描述:(女 , 51岁)代码如下:include “stdio.h“include “stdlib.h“include define TRUE 1define FALSE 0define OK 1define ERROR 0define INFEASLBLE -1define MAXSTRLEN 255 typedef unsigned char SString[MAXSTRLEN+1]; using namespace std;void get_next(SString T, int next[]) { //数组传参为int a[] 格式 int i=1; next[1]=0; int j=0; while (in; ch=getchar(); for(j=1;j