I’m trying to start a new line but it doesn’t seem to be working.
Here’s what I want my legend to look like:
..... std::stringstream result_stringstream; result_stringstream << "with Geometry" << "\nEntries " << totalTrig; //result_stringstream << "with Geometry" << endl << "Entries " << totalTrig; string result_string = result_stringstream.str(); const char* result = result_string.c_str(); .... t1->AddEntry( nhit, result, “l”); .....
so the \n just gives me all on the same line:
with Geometry Entries 3
and endl gives all on the same line:
with GeometryEntries 3