Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

我的代码怎么会出现Presentation Error呢????快快

Posted by wyhaoshuai123456 at 2011-06-08 22:02:19 on Problem 3981
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator