#include<stdio.h> #include<string.h> int main() { char s[1000]; while(gets(s)) { int i,j; for(i=0;s[i]!='\0';i++) { if(s[i]=='y'&&s[i+1]=='o'&&s[i+2]=='u') { s[i]='w'; s[i+1]='e'; for(j=i+2;s[k]!='\0';j++) { s[j]=s[j+1]; } s[j] = '\0'; i=i+2; } } puts(s); } return 0; } /* F:\temp\21491098.684608\Main.c: In function 'main': F:\temp\21491098.684608\Main.c:16: error: 'k' undeclared (first use in this function) F:\temp\21491098.684608\Main.c:16: error: (Each undeclared identifier is reported only once F:\temp\21491098.684608\Main.c:16: error: for each function it appears in.) */ |
Double click to view unformatted code.