#include <iostream>
using namespace std;
int fontSize = 14;
string fontFamily = "Arial";
char style[200];
snprintf(style, 200,
"font-size: %i; font-family: \"%s\"",
fontSize, fontFamily.c_str());
//style is "font-size: 14;font-family: "Arial""
cout << "style: " << style;