24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 596  |  回复: 5
当前主题已经存档。
【有奖交流】积极回复本帖子,参与交流,就有机会分得作者 petcon 的 60 个金币
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

petcon

新虫 (初入文坛)

[交流] 【求助】使用basicexcel读取数据【70金币】

http://www.codeproject.com/KB/office/BasicExcel.aspx

对于会vc的人 应该不难

用 上面这个库 读取excel里面的数据



excel的数据是数字

数据如下
10490.14
10489.14
10488.14
10487.14
10486.14
10485.14
10484.14
10483.14
10482.14
10481.14
10480.14
10479.14
10478.14
10477.14
10476.14
10475.14
10474.14
10473.14
10472.14
10471.14
10470.14


读取之后printf出来

用vc6  或者dev c++ 实现 都可以


我 自己 做出来了 但是 读出来的数据 有问题


用vc6或者dev c++实现 并 读取上面的数据 并能正确的打印出来

即给分

ps那个网址里面 有个demo 可以 以 那个为蓝本

[ Last edited by petcon on 2009-9-30 at 09:55 ]
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jjdg

版主 (知名作家)

优秀版主

★ ★ ★ ★ ★ ★ ★
余泽成(金币+2,VIP+0):支持应助,欢迎常来程序软件版! 10-9 11:24
petcon(金币+5,VIP+0):谢谢回复 但是说明里面并没说 不能读取小数啊 10-10 10:48
你应该先看看那个类关于限制的说明:
Before we look deeper into BasicExcel, let's look at its limitations. It is called BasicExcel for a reason.

It does not support formatting
It does not support formulas
It does not support charts
It does not support Unicode UTF-32
It does not support ...
Actually it does not support a lot of fanciful features of Excel. It is meant to be a basic class to read and write simple things like numbers and strings to a spreadsheet. So maybe it is better to list the things that it does support.

Read and write number (integers, real numbers) and strings (ANSI, UTF16)
Add worksheets
Rename worksheets
Delete worksheets
Get the name of a worksheet
努力学习!以正当途径!获得需要的知识!
3楼2009-10-09 09:47:35
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 6 个回答

huzhyi21

新虫 (正式写手)

★ ★ ★ ★ ★ ★
nono2009(金币+1,VIP+0):鼓励新虫交流!欢迎常来程序软件版! 10-8 19:25
petcon(金币+5,VIP+0):谢谢校友帮顶 10-10 10:46
从白云黄鹤上过来的。
给校友顶一下。
我好久没动过vc了。所以束手无策了。
2楼2009-10-08 18:56:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

petcon

新虫 (初入文坛)

那个 类的 说明 的确写了很多不支持

但是
So maybe it is better to list the things that it does support.

Read and write number (integers, real numbers) and strings (ANSI, UTF16)

这句话里面写了 支持real number 啊
4楼2009-10-10 10:49:19
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jjdg

版主 (知名作家)

优秀版主

我觉得是unicode和ansi编码的问题!
或者你检查一下数据类型

[ Last edited by jjdg on 2009-10-10 at 13:56 ]
努力学习!以正当途径!获得需要的知识!
5楼2009-10-10 13:54:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 22408 359分调剂 +4 Qshers 2026-03-27 5/250 2026-03-28 21:26 by zhq0425
[考研] 压国家一区线,求导师收留,有恩必谢! +7 迷人的哈哈 2026-03-28 7/350 2026-03-28 16:47 by 催化大白
[考研] 本科新能源科学与工程,一志愿华理能动285求调剂 +3 AZMK 2026-03-27 5/250 2026-03-28 16:19 by xxxsssccc
[考研] 275求调剂 +10 Micky11223 2026-03-25 14/700 2026-03-28 15:48 by Micky11223
[考研] 291求调剂 +6 HanBeiNingZC 2026-03-24 6/300 2026-03-28 07:55 by baoball
[考研] 275求调剂 +10 jjjjjjjjjjl 2026-03-27 10/500 2026-03-27 23:47 by barnett0632
[考研] 一志愿211院校 344分 东北农业大学生物学学硕,求调剂 +5 丶风雪夜归人丶 2026-03-26 8/400 2026-03-27 19:22 by 丶风雪夜归人丶
[考研] 一志愿 西北大学 总分282 英语一62 求调剂 +7 18419759900 2026-03-25 8/400 2026-03-27 16:38 by 18419759900
[考研] 一志愿陕师大生物学071000,298分,求调剂 +5 SYA! 2026-03-23 5/250 2026-03-27 09:29 by 不吃魚的貓
[考研] 325求调剂 +3 Aoyijiang 2026-03-23 3/150 2026-03-26 20:46 by 不吃魚的貓
[考研] 289求调剂 +17 硕星赴 2026-03-23 17/850 2026-03-26 16:18 by 不吃魚的貓
[考研] 材料科学与工程 317求调剂 +4 JKSOIID 2026-03-26 4/200 2026-03-26 15:58 by 不吃魚的貓
[考研] 网络空间安全0839招调剂 +4 w320357296 2026-03-25 6/300 2026-03-25 17:59 by 255671
[考研] 0854AI CV方向招收调剂 +4 章小鱼567 2026-03-23 4/200 2026-03-25 17:04 by CoderLoser
[考研] 302求调剂 +4 锦衣卫藤椒 2026-03-25 4/200 2026-03-25 16:29 by 功夫疯狂
[考研] 各位老师您好:本人初试372分 +5 jj涌77 2026-03-25 6/300 2026-03-25 14:15 by mapenggao
[考研] 318求调剂 +3 plum李子 2026-03-23 3/150 2026-03-25 09:42 by 雾散后相遇lc
[考研] 一志愿武理085500机械专业总分300求调剂 +3 an10101 2026-03-24 7/350 2026-03-25 00:00 by 山鬼0-
[考研] 269求调剂 +4 我想读研11 2026-03-23 4/200 2026-03-23 21:25 by pswait
[考研] 求老师收我 +3 zzh16938784 2026-03-23 3/150 2026-03-23 12:56 by ztnimte
信息提示
请填处理意见