
开发技术
文章平均质量分 66
Idleman
喜欢软件开发这项工作。现从事通信设备的软件开发。兴趣范围:C , 面向对象, 软件设计,通信协议。
展开
-
分析表格形式的实验数据
分析表格形式的实验数据2003-4-31.1. 分析函数function sa = PlotTableData(userdata, style1, style2)% PLOTTABLEDATA 分析表格形式的实验数据% userdata 测量数据% style1 离散点的颜色和线型% style2 连续图形的颜色和线型%% P原创 2006-04-22 12:20:00 · 1369 阅读 · 0 评论 -
C++学习笔记:New和Delete
C++学习笔记:New和DeleteC语言操作内存的方式 下面是一段典型的内存分配方式: MyType *pType = (MyType *)malloc(sizeof(MyType)); if (pType == NULL) error; Initialize(&MyType); 在以上的处理中,涉及到了四个环节: 1. 使用sizeof原创 2010-05-26 11:42:00 · 644 阅读 · 0 评论 -
C++学习笔记:Container和Iterator
C++学习笔记:Container和Iterator2010-5-26为什么需要ContainerContainer和动态对象创建结合起来,实现对大量、数目未知对象的创建、管理。通常的用法是:根据需要New一个对象;将对象指针保存到Container中;需要访问对象的时候,从Container中获取对象指针。另外一种管理对象的方法是静态方式,预先创建大规模的对象数组原创 2010-05-26 10:38:00 · 3927 阅读 · 0 评论 -
C++学习笔记:IO操作
C++学习笔记:IO操作2009-5-13I/O相关的类ios-->istream, ostream, iostream-->ifstream, ofstream, fstream; istringstream, ostringstream, iostringstreamstreambuf --> filebuf, stringbuf一个不错的C++在线参考原创 2010-05-26 10:41:00 · 1478 阅读 · 0 评论 -
C++学习笔记:Polymophism
C++学习笔记:PolymophismVirtual Functions通过Virtual函数实现late-binding。Virtual 函数使用Inline是没有意义的;静态函数不能为虚函数;不能声明同名的 static virtual 函数;构造函数不能定义为Virtual;析构函数可以作为Virtual函数,而且建议这么使用;在构造、析构函数中调用其它虚函数时,原创 2010-05-26 11:43:00 · 793 阅读 · 0 评论 -
C++学习笔记:继承
C++学习笔记:继承Inheritance and Composition为什么使用Inheritance和composition? 可以更好的重用已有的代码。可以在不修改已有代码的条件下重用已有的代码。如何选择:Inheritance或composition?Inheritance: 关系是"is a";需要upcastin原创 2010-05-26 11:34:00 · 693 阅读 · 0 评论 -
Using CppUnit With VC6
在VC6 中使用Cppunit总结2009-7-11下载、并编译Cppunit从http://sourceforge.net/projects/cppunit CppUnit的源码包. 目录结构如下:include: CppUnit头文件;src: CppUnit源代码目录;lib:存放编译好的库;在src/目录下, 使用VC编译CppUnitLibraries原创 2009-08-16 12:27:00 · 182 阅读 · 0 评论 -
C语言中的字节对齐
C语言中的字节对齐这篇文档写的比较清楚:http://www.linuxsong.org/2008/09/cc.html关键的几个概念:1.数据类型自身的对齐值:对于char型数据,其自身对齐值为1,对于short型为2,对于int,float,double类型,其自身对齐值为4,单位字节。2.结构体或者类的自身对齐值:其成员中自身对齐值最大的那个值。3.指定对齐值:#pragma pack原创 2009-05-07 21:49:00 · 802 阅读 · 0 评论 -
eCos学习笔记:安装
eCos学习笔记:安装2007-11-11 10:28:53 ecos网站 http://ecos.sourceware.org/ windows平台下的安装指导 http://ecos.sourceware.org/getstart.html 具体安装步骤 1) 安原创 2007-11-11 11:16:00 · 3210 阅读 · 0 评论 -
VxWorks 学习笔记-Reconfiguring VxWorks
§ Reconfiguring VxWorksApplication的启动 在函数usrAppInit( )中,启动用户的应用程序。 调用关系:usrRoot( ) --> usrAppInit( ) ROOT_STACK_SIZE定义任务tUsrRoot的堆栈大小 VxWork原创 2006-07-01 16:21:00 · 2115 阅读 · 0 评论 -
VxWorks 学习笔记-IO and File System
§ IO and File System分层结构 Stardand I/O (stdio, fioLib) is based on Basic I/O Stardand I/O routines use file pointer Basic I/O routines use file descr原创 2006-07-01 16:19:00 · 2226 阅读 · 0 评论 -
VxWorks学习笔记-Real-Time Multitasking
VxWorks 学习笔记§ Real-Time Multitasking1.IntroductionReal-Time A system is described as being deterministic if its response time is predictable. Deterministic respon原创 2006-06-25 11:46:00 · 3394 阅读 · 0 评论 -
VxWorks 学习笔记-Semaphores
§ Semaphores1.OverviewBinary semaphores: Synchronization 申请、和释放由不同的任务执行。 Caveat: if the event repeats too quickly, information may be lost. Mutual exclusion原创 2006-06-25 16:26:00 · 1720 阅读 · 0 评论 -
delphi的消息处理的相关函数
delphi的消息处理的相关函数TWinControl.MainWndProcTControl.WndProcTObject.DispatchTObject.DefaultHandlerTWinControl.MainWndProcprocedure TWinControl.MainWndProc(var Message: TMessage);begin tr原创 2006-04-22 12:22:00 · 1522 阅读 · 0 评论 -
C++学习笔记:类、构造函数
C++学习笔记:类-数据抽象Constructor为什么要用Constructor/Destructor?-- 确保对象的Initialization/Clearup。函数的特点 1) 没有返回值;2) Destructor没有参数; Default Constructor 特点:没有参数; 生成方式:1原创 2010-05-26 11:50:00 · 670 阅读 · 0 评论