Output a report

Hello! everyone. I write C++ code in VS2017. I want to output a report. But I don’t know how to output a report. For example, calculate the chord height of a curve, output the chord height in the report. Is there any code I can refer to? The report can be text or graphic. Thank you very much!

//Joann