I was given the task to write a small program that uses the .replace function. I have to replace bill (from the sentece "bill and ben the flower pot men ") with marmeduke! also it cant require the user to touch anything.
i looked at the c++ pages for .replace function but its not in terms i understand. Could someone please take 5 mins and finish the program and leave comments explaining what does what. thank you:)
what i have so far.
---------------------------------|
#include <iostream>
#include <string>
using namespace std;
int main()
{
string base_sen = "bill and ben the flower pot men";
string replace = "Marmeduke";