求大神看看。。。。这个break为什么跳不出来?
#include<iostream>using namespace std;
int main()
{
char a[100] ;
for(int i=0;i<100;i++)
{ a[i]=cin.get();
if(a[i]=='END')
break ;
else
{if(a[i]=='A'||a[i]=='W'||a[i]=='F')
a[i]='I';
if(a[i]=='C')
a[i]='L';
if(a[i]=='M')
a[i]='o';
if(a[i]=='S')
a[i]='v';
if(a[i]=='D'||a[i]=='P'||a[i]=='G'||a[i]=='B')
a[i]='e';
if(a[i]=='L')
a[i]='Y';
if(a[i]=='X')
a[i]='u'; }}
for(int j=0;j<100;j++)
cout<<a[j];
cout<<endl;
return 0;
}
跪求!!