www.pudn.com > zb.rar > 004.c


#include 
#include  
#define MAX 50 
 
int next[MAX]; 
getnode(char T[])             /*求next函数值*/ 
{int i=0,j=-1; 
 int len; 
 len=strlen(T); 
 next[0]=-1; 
 while(i2||choice<1) 
     {printf("ERROR!please input again.\n"); 
      scanf("%d",&choice); 
     } 
    }while(choice!=2); 
 getch(); 
}