#include <stdio.h>
#include <string.h>
#include <conio.h>
void change_w(/**/填空 1 /**/)
{
int i=0;
while( str[i] )
{
switch( str[i] )
{ case 'a':
str[i]='e'; break;
case 'e':
/**/填空 2 /**/;
case 'i':
str[i]='o'; break ;
case 'o':
str[i]='u'; break;
case 'u':
str[i]='a';
}
/**/填空 3 /**/ ;
}
}
void main()
{
char src[80],tag[80];
printf("Please input source string: ");
gets(src);
strcpy(tag,src);
change_w( tag );
printf("\nThe source string: %s\n",src);
printf("The target string: %s\n",tag);
getch();
}
#include <string.h>
#include <conio.h>
void change_w(/**/填空 1 /**/)
{
int i=0;
while( str[i] )
{
switch( str[i] )
{ case 'a':
str[i]='e'; break;
case 'e':
/**/填空 2 /**/;
case 'i':
str[i]='o'; break ;
case 'o':
str[i]='u'; break;
case 'u':
str[i]='a';
}
/**/填空 3 /**/ ;
}
}
void main()
{
char src[80],tag[80];
printf("Please input source string: ");
gets(src);
strcpy(tag,src);
change_w( tag );
printf("\nThe source string: %s\n",src);
printf("The target string: %s\n",tag);
getch();
}