
bookaa
文章平均质量分 65
sendy888
这个作者很懒,什么都没留下…
展开
-
UINT64
REAL_UINT64 means real UINT64.UINT64 means real UINT64 encoded with the following scheme: Size of encoding sequence depends from first byte: First_Byte Extra_Bytes Value (binary) 0原创 2007-07-24 14:24:00 · 1254 阅读 · 0 评论 -
我的DLL源码(实现2个数的加法和减法)
我的DLL源码(实现2个数的加法和减法) dll工程的dll.cppint add(int a,int b){ return a+b;}int sub(int x,int y){ return x-y;}dll工程的模块定义文件dll.defLIBRARY dll //在def文件中LIBRARY语句说明该def文件是属于相应DLL的EXPORTSaddsub用MFC的主体主原创 2007-07-25 13:47:00 · 2142 阅读 · 0 评论 -
动态链接库简介
动态链接库简介自从微软推出16位的Windows操作系统起,此后每种版本的Windows操作系统都非常依赖于动态链接库(DLL)中的函数和数据,实际上Windows操作系统中几乎所有的内容都由DLL以一种或另外一种形式代表着,例如显示的字体和图标存储在GDI DLL中、显示Windows桌面和处理用户的输入所需要的代码被存储在一个User DLL中、Windows编程所需要的大量的API函数原创 2007-07-25 13:44:00 · 1782 阅读 · 0 评论 -
一道很难的有关算法的测试题,写逆算法
一道很难的有关算法的测试题,写逆算法转载 来源:http://blog.liutaotao.com/blogview.asp?logID=38最近在学习压缩算法,刚学懂了一个压缩算法,把它加以改造,做成了一道测试题.这道题很难,这个算法很巧.如果不知道答案,我都没有把握能做出来.如果你自信算法方面很强,可以试一试.如果你做不出来,又想知道答案,联系我.以下已经给出了完整的 Decode 代码转载 2007-07-31 15:18:00 · 2242 阅读 · 0 评论 -
遍历文件目录 (将目录存到List里)
遍历文件目录 CFileList.h:#include "iostream.h"#include "afx.h"#include "string.h"#include "windows.h"class CFileList{public:void InitList(CString str_Path);void PrintList();private:CStringList m_lis原创 2007-07-25 14:00:00 · 1210 阅读 · 0 评论 -
拖动N个文件,改变文件的最后修改时间,并将文件内容全部设为0
拖动N个文件,改变文件的最后修改时间,并将文件内容全部设为0 用基于对话框的程序完成1.在VC6中新建一个基于对话框的EXE工程。2.在Dlg的OnInitDialog()中加上此句:CDialog::OnInitDialog();DragAcceptFiles (); ………………或者在对话框中Extended Styles的Accept files属性。3.在Dlg的原创 2007-07-25 13:53:00 · 1303 阅读 · 1 评论 -
抽象接口的简单实现(纯虚类)
纯虚函数 #include "iostream.h"class shape{public:virtual void draw()=0;};class circle:public shape{ void draw() { cout }};shape* GetShape(){ return new circle;}void main(){ shape* pshape = Get原创 2007-07-25 13:50:00 · 773 阅读 · 0 评论 -
C++读取磁盘扇区
#include#include#define headPerCylinder 1023#define sectorPerhead 63 char * ReadSectors(int cylinder,int head,int sector,int numsec);char * ReadSectors(int logicalSector,int numsec);void main(){ /原创 2007-07-25 14:02:00 · 6662 阅读 · 0 评论 -
求一个字符串中所有连续的整数和
求一个字符串中所有连续的整数和 int sum(char str[]){ int j=0; int sum=0;//返回值 char store_int_segment[10];//暂存连续的整数段, int length=strlen(str)+1;//计算输入字符串的长度,保证最后是非数字 for(int i=0;i { if(str[i]>=0&&str[i] {原创 2007-07-25 13:54:00 · 1694 阅读 · 0 评论 -
读一个文件,将格式如十六进制编辑器(如WinHex) 样式显示出来
读一个文件,格式如十六进制编辑器 bookaa的代码#include "stdio.h"void printhex_off(DWORD off, void* p, int len, I_MsgBack* pfn){ char s[17]; s[16] = 0; PBYTE pbyte = (PBYTE)p; while (len) { pfn->pr原创 2007-07-25 13:58:00 · 1261 阅读 · 0 评论