Reputation: 415
As the question states, how would I export a vector generated by a C++ script to an excel sheet? I have looked at the answers related to C# and I am unfamiliar with the methods outlined. How is this done in C++?
Upvotes: 1
Views: 1352
Reputation: 137
You can write C++ functions that act just like Excel native functions and accept or return range arguments. Long story: Dalton's book gives the complete story and explores in great detail the many ways to interface Excel with C++. Complete and well written but 600 pages so may not be ideal if you want something up and running quickly. Short story: I wrote a tutorial for my students and colleagues that should get you to interface Excel with C++ within an hour. Both are geared towards applications in finance, but the programming applies to any field. I hope it helps.
Upvotes: 2
Reputation: 10172
I would suggest CSV format which is simple text and can be easily imported by excel.
Upvotes: 8