-
Exchange
求解积分函数的列子,可以求sin的定积分和cos的定积分函数。(Liezi solution of the integral function, you can find the definite integral of sin and cos of the definite integral function.)
- 2013-10-14 19:28:35下载
- 积分:1
-
qt 快速读取excel实例代码
#Qt Windows 下快速读写Excel指南很多人搜如何读写excel都会看到用`QAxObject`来进行操作,很多人试了之后都会发现一个问题,就是慢,非常缓慢!因此很多人得出结论是`QAxObject`读写excel方法不可取,效率低。后来我曾试过用ODBC等数据库类型的接口进行读写,遇到中文嗝屁不说,超大的excel还是会读取速度慢。最后,看了一些开源的代码后发现,Windows下读取excel,还是用`QAxObject`最快!没错,就是用`QAxObject`读写最快!!!大家以后读取excel时(win下),不用考虑别的方法,用`QAxObject`就行,速度杠杠的,慢是你操作有误!下面就说说咋能提高其读取效率。#读取excel慢的原因这里不说如何打开或生成excel,着重说说如何快速读取excel。网上搜到用Qt操作excel的方法,读取都是使用类似下面这种方法进行:```C QVariant ExcelBase::read(int row, int col){ QVariant ret; if (this->sheet != NULL && ! this->sheet->isNull()) { QAxObject* range = this->sheet->querySubObject("Cells(int, int)", row, col); //ret = range->property("Value"); ret = range->dynamicCall("Value()"); delete range; } return ret;}```读取慢的根源就在于`sheet->querySubObject("Cells(int, int)", row, col)`试想有10000个单元就得调用10000次`querySubObject`,网络上90%的教程都没说这个`querySubObject`产生的`QAxObject*`最好进行手动删除,虽然在它的父级`QAxObject`会管理它的内存,但父级不析构,子对象也不会析构,若调用10000次,就会产生10000个`QAxObject`对象得益于[QT快速读取数据量很大的Excel文件](http://blog.csdn.net/a1069962325/article/details/49514377)此文,下面总结如何快速读写excel#快速读取excel文件原则是一次调用`querySubObject`把所有数据读取到内存中VBA中可以使用`UsedRange`把所有用到的单元格范围返回,并使用属性`Value`把这些单元格的所有值获取。这时,获取到的值是一个table,但Qt把它变为一个变量QVariant来储存,其实实际是一个`QList`,此时要操作里面的内容,需要把这个`QVariant`转换为`QList`先看看获取整个单元格的函数示意(这里ExcelBase是一个读写excel的类封装):```C QVariant ExcelBase::readAll(){ QVariant var; if (this->sheet != NULL && ! this->sheet->isNull()) { QAxObject *usedRange = this->sheet->querySubObject("UsedRange"); if(NULL == usedRange || usedRange->isNull()) { return var; } var = usedRange->dynamicCall("Value"); delete usedRange; } return var;}```
- 2020-05-28下载
- 积分:1
-
qichelilun
本程序为汽车理论第五版课后习题程序,采用matlab编程,经测试均为正确结果(The procedures for the car the theoretical fifth edition of the after-school exercise program, using matlab programming, has been tested and are the correct results)
- 2013-05-07 13:35:00下载
- 积分:1
-
AN41908 Reference
这个是AN41908的厂家代码,keil,C 51的例程(AN41908 manufacturer code)
- 2020-08-23 14:48:20下载
- 积分:1
-
C8
说明: 进程调度C语言课程设计必备参考,进程调度C语言课程设计必备参考(The process of scheduling C language curriculum design, an essential reference, the process of scheduling an essential reference to C language curriculum design)
- 2009-09-08 11:41:54下载
- 积分:1
-
qwer
一个简易的登陆系统的例子,并能够实现简单的数据添加和删除,适合初学者学习。(A simple example of the landing system, and to achieve simple data to add and remove, suitable for beginners to learn.)
- 2008-01-06 13:28:36下载
- 积分:1
-
blendeqn
在opengl中演示不同的混合方程式模式,按不同的键,可以转换混合模式(Mixed formula in opengl demo mode, press a different key, you can convert the mixed-mode)
- 2012-10-04 14:56:16下载
- 积分:1
-
segmentation-superpixel
超像素分割方法,在计算机视觉领域,图像分割(Segmentation)指的是将数字图像细分为多个图像子区域(像素的集合)(也被称作超像素)的过程。超像素有一系列位置相邻且颜色、亮度、纹理等特征相似的像素点组成的小区域。这些小区域大多保留了进一步进行图像分割的有效信息,且一般不会破坏图像中物体的边界信息。(Super pixel Segmentation method, in the field of computer vision, image Segmentation, Segmentation) refers to the digital image Segmentation region for multiple image sequence (the set of pixels) (also known as the pixels) process. Adjacent pixels have a series of position and features such as color, brightness, texture similar to that of small region composed of pixels. Most of these small area retains the further effective information for image segmentation, and generally does not destroy the boundary of the object in the image information.)
- 2015-03-31 15:58:59下载
- 积分:1
-
seginnerspart
说明: 本程序为VC++ 6,0的部分学习代码,有助于初学者学习,(This program for VC 6 0 part of the learning code, help beginners learn,)
- 2018-12-31 10:09:51下载
- 积分:1
-
C#源码Asp.net MVC3.0 + EF4.1浪曦生产型ERP
浪曦生产型ERP(企业资源规划)
使用技术:服务端:Asp.net MVC3.0 + EF4.1,(移动客户端)Jquery Moblie,Wp7
数据库:MSSqlServer2008 R2
开发工具:VS2010(移动端可能会使用到VS11)
是否有存储过程:有
- 2022-07-28 06:12:33下载
- 积分:1