#include <iostream>
#include <stdio.h>
#include <fstream>
#include <string>
#include <string.h>
#include <sstream>
using namespace std;
int main()
{
char c = 'Y';
do
{
string text, insertstring, appendstring; text = "";
insertstring = "\n\n \n\n[su_button url=\"#section1\" style=\"soft\" background=\"#ff1c22\" size=\"16\" center=\"yes\" radius=\"5\"]Click here to play the Quiz[/su_button]\n\n \n\n";
appendstring = "\n<div class=\"entity-details text-center \"><a id=\"section1\"></a>\"Start the Quiz\"</div>";
cin.clear();
fflush(stdin);
cout<<"Enter your text\n";
getline(cin, text);
text.insert(0, insertstring );
text.append(appendstring);
cout<<"\n\nHere is your modified text";
cout<<text;
cout<<"\n\nDo you want to continue(Press 'Y' for yes and 'N' for no)\n";
cin>>c;
}
while(toupper(c)!='N');
return 0;
}
#include <stdio.h>
#include <fstream>
#include <string>
#include <string.h>
#include <sstream>
using namespace std;
int main()
{
char c = 'Y';
do
{
string text, insertstring, appendstring; text = "";
insertstring = "\n\n \n\n[su_button url=\"#section1\" style=\"soft\" background=\"#ff1c22\" size=\"16\" center=\"yes\" radius=\"5\"]Click here to play the Quiz[/su_button]\n\n \n\n";
appendstring = "\n<div class=\"entity-details text-center \"><a id=\"section1\"></a>\"Start the Quiz\"</div>";
cin.clear();
fflush(stdin);
cout<<"Enter your text\n";
getline(cin, text);
text.insert(0, insertstring );
text.append(appendstring);
cout<<"\n\nHere is your modified text";
cout<<text;
cout<<"\n\nDo you want to continue(Press 'Y' for yes and 'N' for no)\n";
cin>>c;
}
while(toupper(c)!='N');
return 0;
}
No comments:
Post a Comment