
vc++
eastsir
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
一个简单的MFC程序
#include afxwin.h>#include "resource.h"class CSimplest : CWinApp...{public: virtual BOOL InitInstance();};CSimplest Simplest;class CMywnd:public CFrameWnd...{ CStatic *cs; CMenu *menu;publi原创 2007-05-03 20:45:00 · 549 阅读 · 0 评论 -
VC动态连接库的使用(一)
今天在网上找了一本电子书。跟着学起来了DLL的使用。。。感触很深:://库 头文件。。。#ifndef LIB_H#define LIB_Hextern "C" int __declspec(dllexport)add(int x,int y);//定义出口#endif//源文件#include "lib.h"int add(int x,int y)...{ return x+y;}/*原创 2007-05-05 22:39:00 · 564 阅读 · 0 评论 -
大规模C面试题
C interview questions What will print out? main() { char *p1=“name”; char *p2; p2=(char*)malloc(20); memset (p2, 0, 20); while(*p2++ = *p1++);原创 2008-04-27 23:19:00 · 362 阅读 · 0 评论 -
各种数据包头
typedef struct _ARPHeader // 28字节的ARP头 { USHORT hrd; // 硬件地址空间,以太网中为ARPHRD_ETHER USHORT eth_type; // 以太网类型,ETHERTYPE_IP ?? UCHAR maclen; // MAC地址的长度,为6 UCHAR iplen; // IP地址的长度,为4 USH原创 2008-05-28 22:11:00 · 1184 阅读 · 0 评论