使用excel编写C ++程序以从中获取数据 [英] writing a c++ program using excel to get data from

查看:109
本文介绍了使用excel编写C ++程序以从中获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很大的excel表,其中包含经销商名称,地址,电话号码,联系人.我希望用户可以将状态输入c ++,然后将其查看到excel中,然后输出这些经销商的名称,地址,电话号码.这可能做到吗,我将如何去做呢?我是C ++的新手,所以任何帮助都很棒.

I have a big excel sheet that has dealer names, addresses, phone numbers, contacts I want to be able to have the user enter a state into c++ and then have it look into excel and then output those dealers name, address, phone number. Is this possible to do and how would I go about doing that? I am new to c++ so any help would be wonderful.

推荐答案

可以使用C ++来完成您想做的事情.您提到您是C ++的新手,因此我不确定这是否是最容易开始的项目.如果可以选择,请寻找一些.NET语言,例如C#或VB.NET.您会发现互操作性要容易得多.

如果您想使用C ++,CP上有很多文章.对于初学者,请查看 BasicExcel-可以读写Microsoft Excel的类 [ ^ ]和此处 [
It is possible to do what you want using C++. You mentioned that you are new to C++, with that in mind I am not sure if this would be easiest project to start with. If you have a choice, look for some of the .NET languages either C# or VB.NET. You will find the interoperability to be much easier.

If you want to stay with C++, there are a number of articles here in CP. For starters look at BasicExcel - A Class to Read and Write to Microsoft Excel[^] and CSpreadSheet - A Class to Read and Write to Excel and Text Delimited Spreadsheet[^]

If you want to explore more browse here[^]


这篇关于使用excel编写C ++程序以从中获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆