break非法破坏怎么办
#include<stdio.h>main()
{
char st[20],*ps;
int i;
printf("input a string:\n");
ps=st;
scanf("%s",ps);
for(i=0;ps[i] !='\0';i++);
if(ps[i]=='k'){
printf("there is a 'k' in the string\n ");
break;
}
if(ps[i]=='\0') printf("There is no 'k' in the string\n");
}