Code:#include<iostream>
#include<string>
using namespace std;
string repeat_forever(const string& name)
{
cout << name << endl;
return repeat_forever(name);
}
int main()
{
string name;
cout <<"\n\nEnter your name: ";
cin >> name;
repeat_forever(name);
return 0; //like this will ever happen
}
t'is done. :cool:
