Im too beginner in C++. How i need add title data for this code :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
void ReportDefectPanel::ExportRawData(IReportWriter* pWriter) {
if(mStatisticData.empty()) return;
for(size_t i = 0; i < mStatisticData.size(); i++)
{
SStatisticDefect& df = mStatisticData[i];
pWriter->setText(i, 0, df.mName);
pWriter->setText(i, 1, wxString::Format(wxT("%d"), df.mTotalDefect));
pWriter->setText(i, 2, wxString::Format(wxT("%d"), df.mTotalSize));
pWriter->setText(i, 3, wxString::Format(wxT("%.5f"), df.mPercentage));
if (i == 0 || i == 1) {
pWriter->setBoldRow(i);
}
}
}
|
Title for 0,1,2,3 = Name,Total Defect, Total Size, Percentage
Just now only show the data but don't have title.
Thanks
Last edited on