#include <stdio.h> #include <string.h> int main(){ char s[1000]; while(scanf("%s",s)!=EOF){ int len =strlen(s); for(int i=0;i<len;i++){ if(a[i]=='y'&&a[i+1]=='o'&&a[i+2]=='u'){ printf("we"); i=i+2; }else{ printf("%c",a[i]); } } printf("\n"); } } /* F:\temp\22444891.119382\Main.c: In function 'main': F:\temp\22444891.119382\Main.c:9: error: 'a' undeclared (first use in this function) F:\temp\22444891.119382\Main.c:9: error: (Each undeclared identifier is reported only once F:\temp\22444891.119382\Main.c:9: error: for each function it appears in.) */ |
Double click to view unformatted code.