next:
if(i == length)
{
printf("%s\tis a integer string",input);
goto last;
}
else if(i>=1)
{
printf("%s\tis not a acceptable string",input);
goto last;
}
else
for(i=0;i<=length;i++)
{
if((strcmp(keywords[i], input)) == 0)
{
printf("%s\tis a keyword", input);
goto last;
}
}
printf("%s\tis a identifier string", input);
last:
printf("Thank you for your use!again?y or n");
/*在以前的输入中,回车也算是一个字符啦,所以getchar()从缓冲区里取到的是回车哦*/
getchar(); /*加上一个getchar()是为了清空缓冲区*/
s = getchar();
}while(s == 'y');
}