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++?
我建议使用CSV格式,它是简单的文本,可以通过excel轻松导入。
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.