24小时热门版块排行榜    

查看: 684  |  回复: 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的回帖

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的回帖

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的回帖

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的回帖

petcon

新虫 (初入文坛)

引用回帖:
Originally posted by jjdg at 2009-10-10 13:54:
我觉得是unicode和ansi编码的问题!
或者你检查一下数据类型

[ Last edited by jjdg on 2009-10-10 at 13:56 ]

不是这个问题

你可以自己在excel里面输入这些数据

用 程序读读就知道了
6楼2009-10-14 18:12:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 petcon 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 国社科又开始会评了,不知道这次命运如何 +9 雨打竹帘 2026-08-30 13/650 2026-09-03 08:16 by kudofaye
[基金申请] 麻烦专家们看看评委们的意见(F口面上) +8 gdd2018 2026-08-28 13/650 2026-09-03 06:22 by 羽毛枫f
[公派出国] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 ero8OE6tv9cu 2026-09-02 4/200 2026-09-03 03:14 by rM1TE0WVDIIY
[博后之家] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 ero8OE6tv9cu 2026-09-02 6/300 2026-09-02 23:59 by rM1TE0WVDIIY
[基金申请] 为什么资助数各大高校都创新高,自己申请怎么就这么难 +14 Kittylucky 2026-08-27 15/750 2026-09-02 19:35 by liumei0601
[基金申请] 科研人应该花精力去思考如何解决问题,而不是去凝练问题 +7 瞬息宇宙 2026-09-01 14/700 2026-09-02 17:33 by ma0526
[基金申请] 要骂人了,新模版改版就是要淡化问题凝练这种虚的东西,结果有个评委还在说凝练得不够 +9 瞬息宇宙 2026-08-31 17/850 2026-09-02 14:04 by anjeeshine
[基金申请] 基金系统什么内容也没有 30+4 winsaint 2026-08-27 10/500 2026-09-02 11:35 by 大不刘6
[基金申请] 学科评审组评审是指会评吗? +5 瞬息宇宙 2026-08-31 5/250 2026-09-02 10:13 by 雨冰共舞
[基金申请] 面上函评意见出来了,像什么等级? 20+4 Tsingking1 2026-08-27 17/850 2026-09-01 19:51 by 超级无敌华子
[论文投稿] 小白求助 投论文要求的highlights应该如何写 5+3 l1963982152 2026-08-29 4/200 2026-09-01 09:04 by 北京莱茵编辑
[基金申请] 基金未中,这种答复是模板吗? +6 zhaosm1982 2026-08-27 7/350 2026-08-31 21:18 by qdxxmc
[基金申请] 面上意见出来了 +12 黄鸟于飞Chao 2026-08-29 23/1150 2026-08-31 18:57 by 黄鸟于飞Chao
[基金申请] 能否申诉? +7 echo8914667 2026-08-30 8/400 2026-08-31 17:00 by yihongxu
[基金申请] 中青基了要发朋友圈吗? +7 349506619 2026-08-28 7/350 2026-08-31 13:39 by 冼亮淀粉酶
[基金申请] 29号明天会评吗 +4 笨笨唐 2026-08-28 4/200 2026-08-31 09:30 by huixian257
[基金申请] 为什么到现在没收到通知? +5 tannykie 2026-08-29 5/250 2026-08-30 21:05 by purplejack
[考博] 找导师 +6 yuanjiabao 2026-08-29 7/350 2026-08-30 14:40 by 生科新手
[基金申请] 我就是申请一个面上项目而已,这评审意见是按照杰青的条件评的吧? +6 gouxfjh 2026-08-28 11/550 2026-08-30 07:57 by gouxfjh
[基金申请] 国自然评审意见 +13 wangmingqi 2026-08-28 19/950 2026-08-29 10:22 by Poppy1104
信息提示
请填处理意见