Home > Back-end >  English errors in the system
English errors in the system

Time:12-29



#include
#include
Int main () {
Char rword [2222].
Char iword [2222].
Int loc [2222].
Char lei [2222] [6].
char ch;
Int time;
Int rtime=0;
Int num=1;
Int lenr leni;
int i,j,k;
While (gets (rword)!=NULL) {

Num=1;
The scanf (" % d ", & amp; Time);
Lenr=strlen (rword);
The fflush (stdin);
While (gets (iword) & amp; & STRCMP (iword, "END")) {
Leni=strlen (iword);
If (STRCMP (iword, rword)==0) {
Printf (" % d OK! \ n ", num++);
continue;
}
If (strlen (iword) & gt; Strlen (rword)) {
for(i=0; iIf (iword [I]==rword [I] & amp; & Iword [I + 1)==rword [I]) {
Printf (" % d % d % delete c \ n ", num++, I + 1, iword [I]);
break;
}
Else if (iword [I]==rword [I]) {
Rtime++;
continue;
}
Else if (iword [I]==rword [I + 1]) {
Printf (" % d % d insert % c \ n ", num++, I + 1, rword [I]);
break;
}
Else if (iword [I]! + 1=rword [I] & amp; & Iword [I]!=rword] [I - 1) {
Printf (" % d % d % change c \ n ", num++, I + 1, rword [I]);
break;
}


}
}
The else {
for(i=0; iIf (iword [I]==rword [I]) {
continue;
}
Else if (iword [I]==rword [I + 1]) {
Printf (" % d % d insert % c \ n ", num++, I + 1, rword [I]);
Break;;
}
Else if (iword [I]! + 1=rword [I] & amp; & Iword [I]!=rword] [I - 1) {
Printf (" % d % d % change c \ n ", num++, I + 1, rword [I]);
break;
}
}
}
}}
return 0;
}

Excuse me what's the problem with this code?

CodePudding user response:

There must be some problem,
Otherwise you won't be to ask,

Questions not mention this, you should get the answer this question,
You have to describe the problem symptoms, if necessary, screenshots,
  • Related