Is there a way to output to an excel file but to assign what you're outputting to a specific c开发者_如何学Goell in the excel file?
For example have an array be cell x 1-50 or something like this.
There are some C++ libraries for that. An example of a free one is xlsstream and a commercial one would be LibXL. Google is your friend to find more.
You can output an html formatted table to a file with an xls extension. When loading it, Excel will convert it to a spreadsheet. Sample:
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
You can output data in as CSV and excel will read it just fine:
row 1 cell 1, row 1 cell 2
row 2 cell 1, row 2 cell 2
精彩评论