c++ console program with html

Hello, I am starting out on programming and I got an assigment to make a console program with c++ and html. And I wanted to make so the user can choose the background color himself, but I have no idea how to insert the color string into the html code. Can anybody help?

void background(ofstream &document)
{
string color;
cout << "Write the background oolor :"<<endl;
getline(cin, color);
document << "<body style='background-color:color'></body>";
Maybe like this:
document << "<body style='background-color:" << color << "'></body>";
Thanks !
Topic archived. No new replies allowed.