Location:
Search - struct VC
Search list
Description: 我本来想用的是.ocx控件,最后发现,对于自定义struct,它似乎是无能为力(有谁知道.ocx可以的话请联系我)。最后采用的是vc++6.0中的ATL。下面给出了如何调用含自定义结构的组件函数senddata,ReceiveData。组件中的参数传递与下面的代码是一模一样的 ,这里不再重复。(该组件是应用于配电自动化中的,用以实现馈线自动化FA功能,本人自己设计开发)。 -I had wanted to use the. Exe controls and found that, since the definition of struct, it seems to be powerless (who knows. exe can then please contact me). The final vc 6.0 is the ATL. Below is how the call-defined structure with components function senddata, ReceiveData. Components of the parameters passed with the following code is exactly the same and are not repeated here. (The components are used in the automation of distribution to reach FA feeder automation functions, I own design).
Platform: |
Size: 92646 |
Author: wwwwppp |
Hits:
Description: This text surrounds the development of the electric power SCADA system exactly, aiming at the present condition of the our country electric power charged barbed wire net currently, according to the oneself at the e- lectric power protect the profession after the electricity in seven years of development, design and adjust to try the experience on the scene from following severals carry on the treatise:Is the emergence to the system of SC- ADA and developments to introduce first Carry on the introduction elucidation to applied present condition and the development foregrounds of various terminal equipments communication agreement(rules invite) the next in order Then is the elucidation to the windows the bottom according to the mfc the plait distance environment an- d VC++6.0 plait distance softwares Carry on the more detailed treatise to the realization of the procedure struct- ure frame and the source code again End is the applied case example give examples.-This text surrounds the development of the electric power SCADA system exactly, aiming at the present condition of the our count ry electric power charged barbed wire net curre ntly. according to the oneself at the e-lectric power protect the profession after the electricity i n seven years of development, design and adjust to try the experience on the sc Irene from following severals carry on the treati se : Is the emergence to the system of SC - ADA and deve lopments to introduce first Carry on the introd Elucidation uction applied to present conditi on and the development of various t foregrounds erminal communication equipments agreement ( rules invite) the next in order Then is the eluci dation to the windows the bottom according to th e mfc the chivalrous distance an environment-d VC
Platform: |
Size: 434867 |
Author: Jawen |
Hits:
Description: VC++ 封装了队列类 /// /// /// ///// //this a example for using Queue ///////////////////////////////////////// #include \"Queue.h\" //define queue data struct struct QueueData { char data[20] int nId } //define queue typedef TQueue<QueueData> TMyQueue //put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, \"hello!\") data.nId = 0 m_pMyQueue.TryPut(data) } //try put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, \"hello!\") data.nId = 0 if(m_pMyQueue.TryPut(data) != 0) { MessageBox(\"put queue error\") } else { MessageBox(\"put queue success\") } } //get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.Get(data) MessageBox(data.data) } //try get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.TryGet(data) MessageBox(data.data) }-cohort of VC Packaging category ///////////////////////////////////////// / / this is a example for using Queue ///////////////////////////////////////// # include "Queue . h "/ / define queue data struct QueueData struct (char data [20] int nId) / / define queue typedef TQueuelt; QueueDatagt; TMyQueue / / put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data.data, "hello!") data.nId m_pMyQueue.TryPut = 0 (data)) / / try put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data. data, "hello!") data.nId = 0 if (m_pMyQueue.TryPut (data)! = 0) (MessageBox ( "put queue error")) else (MessageBox ( "put queue success"))) / / get data from QueueData data queue (memset (data, 0, sizeof (data))
Platform: |
Size: 34517 |
Author: zj |
Hits:
Description: 用VC实现的几个常用的数据结构-with VC several commonly used data structures
Platform: |
Size: 756736 |
Author: qw |
Hits:
Description: VC++ 封装了队列类 /// /// /// ///// //this a example for using Queue ///////////////////////////////////////// #include "Queue.h" //define queue data struct struct QueueData { char data[20] int nId } //define queue typedef TQueue<QueueData> TMyQueue //put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, "hello!") data.nId = 0 m_pMyQueue.TryPut(data) } //try put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, "hello!") data.nId = 0 if(m_pMyQueue.TryPut(data) != 0) { MessageBox("put queue error") } else { MessageBox("put queue success") } } //get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.Get(data) MessageBox(data.data) } //try get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.TryGet(data) MessageBox(data.data) }-cohort of VC Packaging category /////////////////////////////////////////// this is a example for using Queue /////////////////////////////////////////# include "Queue . h "//define queue data struct QueueData struct (char data [20] int nId)// define queue typedef TQueuelt; QueueDatagt; TMyQueue// put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data.data, "hello!") data.nId m_pMyQueue.TryPut = 0 (data))// try put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data. data, "hello!") data.nId = 0 if (m_pMyQueue.TryPut (data)! = 0) (MessageBox ( "put queue error")) else (MessageBox ( "put queue success")))// get data from QueueData data queue (memset (data, 0, sizeof (data))
Platform: |
Size: 33792 |
Author: zj |
Hits:
Description: 一 题目
全国铁路交通咨询系统
二 需求分析
1.系统配制:
硬件:CPU:P4 1.6G 内存容量 256M 标准输入输出设备
软件:操作系统Windows xp 源程序调试工具VC6.0
可执行文件运行工具 DOS 5.0.
2.该系统有供用户选择的菜单和交互性。
3.建立一个全国铁路交通咨询系统,该系统具备自动查找任意两城市间铁路交通的最短路径和最少花费的功能。
三 设计概要
1.抽象数据类型
本程序运用了关于图这种数据结构。
他的抽象数据类型定义如下:
typedef struct unDiGraph
{
int numVerts //结点
costAdj cost //邻接矩阵
}unDiGraph,*UNG
基本操作:
unDiGraph* CreateCostG()
操作结果:构造带权(费用)图。
unDiGraph* CreateTimeG()
操作结果:构造带权(时间)图。
PathMat *Floyed(unDiGraph *D)
操作结果:Floyed函数 求任意两点的最短路径。
-a subject of the national railway traffic advisory system analysis of a two needs. Preparation System : Hardware : CPU : P4 1.6 GHz 256 MB of memory standard input and output device software : Windows XP operating system source code debugging tools VC6.0 executable file running DOS 5 tools. 0. 2. The system is available for users to choose the menu and interactive. 3. The establishment of a national rail traffic advisory system, the system automatically search with arbitrary two inter-city rail traffic and the shortest path to the function at the lowest cost. Three design an outline. This abstract data type procedures on the use of this data structure map. His abstract data type is defined as follows : typedef struct (int unDiGraph numVerts// node costAdj cost// adjacency matrix) unDiG
Platform: |
Size: 56320 |
Author: gang |
Hits:
Description: 我本来想用的是.ocx控件,最后发现,对于自定义struct,它似乎是无能为力(有谁知道.ocx可以的话请联系我)。最后采用的是vc++6.0中的ATL。下面给出了如何调用含自定义结构的组件函数senddata,ReceiveData。组件中的参数传递与下面的代码是一模一样的 ,这里不再重复。(该组件是应用于配电自动化中的,用以实现馈线自动化FA功能,本人自己设计开发)。 -I had wanted to use the. Exe controls and found that, since the definition of struct, it seems to be powerless (who knows. exe can then please contact me). The final vc 6.0 is the ATL. Below is how the call-defined structure with components function senddata, ReceiveData. Components of the parameters passed with the following code is exactly the same and are not repeated here. (The components are used in the automation of distribution to reach FA feeder automation functions, I own design).
Platform: |
Size: 92160 |
Author: wwwwppp |
Hits:
Description: This text surrounds the development of the electric power SCADA system exactly, aiming at the present condition of the our country electric power charged barbed wire net currently, according to the oneself at the e- lectric power protect the profession after the electricity in seven years of development, design and adjust to try the experience on the scene from following severals carry on the treatise:Is the emergence to the system of SC- ADA and developments to introduce first Carry on the introduction elucidation to applied present condition and the development foregrounds of various terminal equipments communication agreement(rules invite) the next in order Then is the elucidation to the windows the bottom according to the mfc the plait distance environment an- d VC++6.0 plait distance softwares Carry on the more detailed treatise to the realization of the procedure struct- ure frame and the source code again End is the applied case example give examples.-This text surrounds the development of the electric power SCADA system exactly, aiming at the present condition of the our count ry electric power charged barbed wire net curre ntly. according to the oneself at the e-lectric power protect the profession after the electricity i n seven years of development, design and adjust to try the experience on the sc Irene from following severals carry on the treati se : Is the emergence to the system of SC- ADA and deve lopments to introduce first Carry on the introd Elucidation uction applied to present conditi on and the development of various t foregrounds erminal communication equipments agreement ( rules invite) the next in order Then is the eluci dation to the windows the bottom according to th e mfc the chivalrous distance an environment-d VC
Platform: |
Size: 434176 |
Author: Jawen |
Hits:
Description: 这是用于线性方程组求解的ILUK预处理算法的实现。在VC++编译通过。矩阵采用压缩稀疏行格式存储(CSR),采用如下结构存储:struct Distmatrix {double **ma int **ja,dimension,*nnzrow } 很容易移植到自己定义数值计算软件包中。经本人测试计算效率比Fortran写的高很多(比如与Sparskit2比较)。-This is used for solving linear equations ILUK preconditioning algorithm. In VC++ Compiled through. Matrix using compressed sparse row storage format (CSR), using the following structure of memory: struct Distmatrix (double** ma int** ja, dimension,* nnzrow) be easily transplanted to their own definition of numerical computation package. I tested by calculating the efficiency ratio is much higher Fortran write (for example, compared with Sparskit2).
Platform: |
Size: 537600 |
Author: 张德柱 |
Hits:
Description: 将的C++头文件的struct自动转换为C# struct,实现VC和C#的通信数据。-To the C++ The struct header files automatically converted to the C# Struct, the realization of VC and C# Data communications.
Platform: |
Size: 210944 |
Author: 陈晓斌 |
Hits:
Description: 这是一个自动转换以struct定义为主的c++头文件到pascal文件的小工具。方便实现vc程序和delphi程序的通信。对c头文件的内容和格式有一些限制,力求简单。-This is an automatic conversion to struct definition mainly c++ Header files to pascal paper gadget. Procedures and facilitate the achievement of vc communications delphi procedures. C header files for the content and format of a number of limitations to simple.
Platform: |
Size: 12288 |
Author: 陈晓斌 |
Hits:
Description: 位图的存取在vc中的 因为所在的项目中我负责的模块是有关与位图的读写和存储的,所以看了一些资料后,并且成功在vc 下实现所需的功能后写下这篇读书报告。
对于位图,要想在vc中实现读取和存储,先必须了解BMP的文件格式。
BMP文件大体上分成四个部分:位图文件头,位图信息头,调色板,实际的位图数据。
位图文件头BITMAPFILEHEADER是一个结构,它的定义如下:
typedef struct tagBITMAPFILEHEADER{
WORD bfType
DWORD bfSize
WORD bfReserved1
WORD bfReserved2
DWORD bfOffBits
}BITMAPFILEHEADER实现-Bitmaps in vc access because of the projects where I am responsible for the module is concerned with reading and writing bitmap and storage, so read some information, and the success achieved in vc feature required to write This study reports. For bitmap, in order to achieve in the vc read and stored, first must understand the BMP file format. BMP files generally divided into four parts: the first bitmap file, BITMAPINFOHEADER, palette, the actual bitmap data. BITMAPFILEHEADER bitmap file header is a structure, it is defined as follows: typedef struct tagBITMAPFILEHEADER (WORD bfType DWORD bfSize WORD bfReserved1 WORD bfReserved2 DWORD bfOffBits ) BITMAPFILEHEADER to achieve
Platform: |
Size: 187392 |
Author: lypdl |
Hits:
Description: mapx+vc基本框架 与各项功能实现 图元查找,修改图元大小,添加标签,创建图元等比较难的功能。图元闪烁-mapx based vc++ have complete it s struct and some higher user
Platform: |
Size: 787456 |
Author: liyuan |
Hits:
Description: 结构输入,windows下的结构输入,利用vc编程-Structure import, windows structure under the input, using vc Programming
Platform: |
Size: 416768 |
Author: twf |
Hits:
Description: 弗洛伊德求最短路径的VC算法
#include <iostream>
using namespace std
#define MAXV 50
#define INF 32767
typedef int InfoType
//邻接矩阵存储方法
typedef struct
{
-Freud find the shortest path algorithm# include VC <iostream> using namespace std # define MAXV 50# define INF 32767 typedef int InfoType // adjacency matrix storage method typedef struct {. . . .
Platform: |
Size: 930816 |
Author: nannan |
Hits:
Description: 结构体的VC++编程实例 不会的可以看看参考的哦 共同交流-Structure of VC++ programming examples can not see reference
Platform: |
Size: 136192 |
Author: zhuwule |
Hits:
Description: 该资源在VS2008SP1 IDE中编写, 主要实现了在VC++中定义和使用结构体,另外还实现了结构体和vector的结合使用,将为你学习结构体产生重要帮助。-Th resources is done in VS2008SP1 IDE ,mainly about how to definite and use struct, and also how to combine struct and vector. It will be important to help you learn the struct.
Platform: |
Size: 131072 |
Author: 小木头 |
Hits:
Description: vc6/mfc的class转成结构体,用于ida逆向分析vc/mfc软件-mfc struct form ida
Platform: |
Size: 39936 |
Author: 谢玉林 |
Hits:
Description: 捕获数学函数异常
假如我们要用一个数学函数,比如反正弦函数asin(x),如果变元x的值是由用户提供或某个中间结果,则在调用时必须判断其取值范围是合理,是否满|x|<=1?即
view sourceprint?
1.if(fabs(x)<=1)
2.
y=asin(x)
3.else
4.
y=…
对数函数也可作类似的处理。但是如果遇到幂函数pow(x,y)时,问题就不那么简单了。仔细分析将发现:
y
x 负小数 负整数 0 整数 小数
负小数 无意义 有意义 有意义 有意义 无意义
负整数 无意义 有意义 有意义 有意义 无意义
0 无意义 无意义 有意义 有意义 有意义
整数 有意义 有意义 有意义 有意义 有意义
小数 有意义 有意义 有意义 有意义 有意义
例如:pow(-1.2,-1.2)=-1.#IND。如果要编程处理,至少需要六个if语句。即使如此,也有麻烦:如何判断一个double型的变元的值是整数还是小数?
为了处理数学函数运算中出现的异常,VC++提供了一个函数_mather,其原型在中:
view sourceprint?
1.int _matherr( struct _exception *except ) -Capture mathematical function abnormalities
Platform: |
Size: 5120 |
Author: testese |
Hits:
Description: 结构体的VC++编程实例 不会的可以看看参考的哦 共同交流-Structure of VC++ programming examples can not see reference
Platform: |
Size: 136192 |
Author: nceItu |
Hits: