
C&C++
文章平均质量分 76
nonowhy
这个作者很懒,什么都没留下…
展开
-
一个异质堆栈模板.
#ifndef STACK_H#define STACK_H#include using namespace std;template template > class CONT = std::deque >class Stack{private: CONT elems ;public: void push(T const&); void pop(); T top() const; bo原创 2005-03-17 08:34:00 · 716 阅读 · 0 评论 -
遍历PE文件头。
遍历PE文件头,枚举PE文件节表。以下是基本方法。#include /*typedef struct SEH { DWORD PrevLink ; // the address of the previous seh structure DWORD CurrentHandler ; // the address of the new exception handler DWORD Safe原创 2005-04-01 18:20:00 · 765 阅读 · 0 评论 -
郁闷!偏移地址的问题!
原创 2005-04-03 22:28:00 · 907 阅读 · 0 评论 -
[转]92个经典开源项目集锦(包括URL)
Linuxhttp://www.linux.org/FreeBSDhttp://www.freebsd.org/PostgreSQLhttp://www.postgresql.org/MySQLhttp://www.mysql.org/SAP DBhttp://www.sapdb.org/Hypersonic/Hsqlhttp://hsqldb.sourceforge.net/McKoihttp:原创 2005-04-28 08:19:00 · 1059 阅读 · 0 评论 -
c++构造函数的背后
OS :winxp 、平台:i386/** 以下是测试代码*//** class obj */class obj{public: int m_i; int *m_pi; obj(int *ptemp) { printf("this point to %x/n" , (unsigned int)this ); m_i = 0;原创 2005-04-27 11:25:00 · 1287 阅读 · 0 评论 -
wchar_t与char转换
环境:Dev cpp 平台i386 C++标准中,wchar_t是宽字符类型,每个wchar_t类型占2个字节,16位宽。汉字的表示就要用到wchar_t 。char,我们都知道,占一个字节,8位宽。其实知道了这个以后,要在wchar_t 和 char两种类型之间转换就不难实现了。 wchar_t 转换为char 的代码如下: 有如下原创 2005-05-02 02:38:00 · 2165 阅读 · 0 评论