View Code of Problem 3496

#include <iostream>
#include <string.h>
using namespace std;

int main(){
	string s;
	while(getline(cin,s)){
		while(s.find("you",0)!=string::npos){
			s.replace(s.find("you",0),3,"we");
		}
		cout<<s<<endl;
	}
}

Double click to view unformatted code.


Back to problem 3496