| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
我的代码怎么会出现Presentation Error呢????快快#include<iostream>
using namespace std;
int main()
{
char*c=new char;
while(1)
{
cin>>c;
char* m=c;
if(!cin)
break;
while(1)
{
if(*c=='y'&&*(c+1)=='o'&&*(c+2)=='u')
{
*c='w';
*(c+1)='e';
*(c+2)=0;
}
if(*c==0)
break;
c++;
}
while(*m)
{
cout<<*m;
m++;
}
cout<<' ';
}
return 0;
delete c;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator