- 博客(10)
- 资源 (11)
- 收藏
- 关注
原创 全局作用域符号(双冒号)例子
#include int count = 0; //全局变量 0void main() { int count = 10; //局部变量10 printf("count =%d/n",count);//局部变量屏蔽了全局变量 所以输出结果是10 { int count = 20; printf("count =%d/n",::count); //作用域符号指出引用全局
2009-04-03 03:00:00
1046
原创 虚函数 多态
/*用虚函数实现动态连接在编译期间,C++编译器根据程序传递给函数的参数或者函数返回类型来决定程序使用那个函数,然后编译器用正确的的函数替换每次启动。这种基于编译器的替换被称为静态连接,他们在程序运行之前执行。另一方面,当程序执行多态性时,替换是在程序执行期进行的,这种运行期间替换被称为动态连接。如下例子:*/#includeusing namespace std;//类声明及成员函数定义cla
2009-04-03 02:56:00
420
原创 ActiveDAQ控件的VC编程 数据采集 VARIANT数据类型的使用
// activetestDlg.cpp : implementation file//#include "math.h"#include "stdafx.h"#include "activetest.h"#include "activetestDlg.h"#include "stdafx.h"#include "windows.h"#include "mmsystem.h"#include "D
2009-04-03 02:44:00
1378
原创 Timer Event Callback
// timeSimple.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "windows.h"#include "mmsystem.h"#pragma comment (lib,"winmm.lib")#define ONE_MILLI_SECOND 1 //
2009-04-03 02:29:00
770
原创 数组名、数组名取地址以及作为函数传递带来的问题
// array_para.cpp : 定义控制台应用程序的入口点。////数组地址以及作为函数传递带来的问题 #include "stdafx.h"#include using namespace std;void test(int a[5]);void test2(int a[5]);int _tmain(int argc, _TCHAR* argv[]){ int a[5
2009-04-03 01:57:00
1077
原创 C# event 的一个例子
using System;class EventClass{ //step1:create custom event args class(skip if system:EventArgs is used)#region custom event args class public class EventNameEventArgs:EventArgs { publi
2009-04-03 01:51:00
369
原创 多线程 Semaphore 回调函数 多媒体定时器的使用
////作用:创建两个线程各自定时输出tickcount////// timerSemaphore.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "windows.h"#include "mmsystem.h"#pragma comment (lib
2009-04-03 01:49:00
767
原创 RADIO按钮GROUP属性未设置正确的TAB顺序而引起单选BUG
问题描述:3个radio选择了第一个为group属性,并添加了相应的value成员变量。经过测试,单选按钮的响应不对,常常会出现类似刷新失败导致选中多个的问题。 问题解决:多个radio构成group时其变量是按照其TAB顺序来分配的!故需要用ctrl+D选择其TAB顺序。将其TAB顺序依次选对后即可实现正常的单选功能。
2009-04-03 01:38:00
793
原创 类的size & 私有成员的继承方式
#includeusing namespace std;class CParent{public: int m_Variable1; //size=4 (int) virtual void ShowVariable(){ //size=4(虚函数通过一个void pointer VPTR调用) coutm_Variable1 coutm_Variable2 };
2009-04-03 01:19:00
391
原创 内存分配方式(动态/静态)的不同对const变量(全局/局部)访问性的影响
// CONSTANT_StaticVsDynamic.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include using namespace std;const int const_var2=2; //GLOABAL const variable=>"static storage"in ROMint _tmain(int argc, _T
2009-04-03 01:05:00
530
罗云彬 Windows环境下32位汇编语言程序设计 PDF 完美版 一共3个分卷
2009-05-06
Linux\Understanding.The.Linux.Kernel,3rd.ed.2005.chm
2009-02-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人