- 博客(48)
- 收藏
- 关注
原创 Windows Data Types
大多数指针类型名称都以P或LP前缀开始。句柄引用已加载到内存中的资源。ATOM Atom. For more information, see Atoms.BOOL Boolean variable (should be TRUE or FALSE).BOOLEAN Boolean variable (should be TRUE or FALSE).BYTE Byte (8 bits)...
2019-09-22 17:51:48
186
原创 文件系统:Data Decompression Library:数据解压库函数
Data Decompression LibraryThis overview describes concepts relating to data compression and describes the decompression functions.About the Data Decompression LibraryUsing the Data Decompression Li...
2019-09-16 00:34:39
264
原创 文件存储:File I\O
A file is the basic unit of storage that enables a computer to distinguish one set of information from another. This overview describes the file input and output (I/O) operations and the information ...
2019-09-16 00:27:00
454
原创 文件存储:File Mapping 文件映射
The following topics describe file mapping and how to use the file-mapping functions:About File MappingUsing File MappingFile Mapping ReferenceThe following elements are used with file mapping:...
2019-09-16 00:26:14
807
原创 文件存储:Single-Instance Store 单实例存储
Single-Instance StoreSingle-instance store, or SIS, is an architecture designed to maintain duplicate files with a minimum of disk, cache, and backup media overhead. Single-instance store backup, or ...
2019-09-16 00:25:20
417
原创 文件存储:Tape Backup 磁带备份
The tape functions enable backup applications to read from and write to a tape, initialize a tape, and retrieve tape or tape drive information.磁带函数使备份应用程序能够对磁带进行读写、初始化磁带以及检索磁带或磁带驱动器信息。About Tape Ba...
2019-09-16 00:24:25
1182
原创 文件存储:File Systems 文件系统
Applications rely on file systems to store and retrieve information on mass storage devices. File systems provide the underlying support that applications need to create and access files and directo...
2019-09-16 00:23:19
1610
原创 SDK
Contents of the Platform SDKThe Platform SDK is composed of the Windows SDK and the .NET Enterprise Server SDKs. 平台SDK由Windows SDK和.NET企业服务器SDK组成Windows SDK:The following is an alphabetical listin...
2019-09-16 00:22:06
201
原创 File Storage:文件存储
A file is the basic unit of storage that enables a computer to distinguish one set of information from another. Files are stored on a variety of media, such as floppy disks, hard disks, tapes, CDs, a...
2019-09-16 00:20:30
3042
原创 Windows User Interface
Buttons–》Button按钮CaretsCombo BoxesCommon Dialog Box LibraryCursors–》Cursors:光标Dialog Boxes–》DialogueBox:对话框Edit Controls–》Edit Controls:编辑控件HooksIcons:图标Keyboard Accelerat...
2019-09-16 00:17:21
261
原创 Icons:图标
An icon is a picture that consists of a bitmap image combined with a mask to create transparent areas in the picture. The term icon can refer to either of the following: 图标是由位图图像和掩码组成的图片,用于在图片中创建透明区域...
2019-09-16 00:11:52
1300
原创 SDK第一课(Windows SDK编程入门)
SDK (Software Development Kit) 软件开发工具包Windows应用接口程序接口(API)(应用程序<--------->操作系统<--------->输出输入设备)A:API(Application Programming Interface,应用编程接口)B:内核对象(用户模式和内核模式权限级别)内核:M0到M3用户:M0和M3(最...
2019-09-09 14:16:38
8644
原创 SDK第二课(用SDK开发Windows程序)
SDK开发Windows步骤11WinMain函数111设计、注册窗口类11创建并显示窗口11消息循环11编写过程函数11#include <windows.h>//窗口类WNDCLASStypedef struct{ UINT style; //窗口的类型 WNDPROC lpfnWndProc; //注册过程函数...
2019-09-09 14:15:06
476
原创 内存四区
#include <iostream>using namespace std;int main(){ }1:内存分区模型1.1:程序运行前1.2:程序运行后1.3:new操作符内存分区模型代码区:存放函数体的二进制代码,有操作系统进行管理全局区:存放全局变量和静态变量以及常量栈区:由编译器自动分配和释放,存放函数的参数值。局部变量等。堆区:由程...
2019-07-21 18:56:24
151
原创 函数提高
//函数提高/**********************************************************************************函数默认参数:在C++中,函数的形参列表中的形参是可以有默认值的语法:return type function name(parameter list default values) 返回值类型 函数名(参数列表默...
2019-07-21 18:54:35
150
原创 引用
/********************************************************************************** const 引用用途:给一个变量取别名语法:type &references name = value name;注意:a : 引用必须初始化。b : 引用一旦初始化后,不可以被更改成别的变量引用。***...
2019-07-21 18:54:17
132
原创 文件
与文件进行通信文件使用函数:fopen();getc();putc();exit();fclose();fprintf();fscanf();fgets();fputs();rewind();fseek();ftell();fflush();fgetpos();fsetpos();feof();ferror();ungetc();setvbuf();fre...
2019-07-14 16:29:11
145
原创 2W阶乘秒求
/* 1*2*3*4*5*6*7*8*9 char a[1000000]; */ int num_len = 1; int a[1000000]; a[1] = 1; int tmp = 0; int len = 9 + 1;//阶乘的长度9+1 for (int i = 2; i < len + 1; ++i)//要求几次乘法 { for (int j =...
2019-06-30 18:50:12
284
原创 幻方计算分析
幻方规律:不管在那个方向1始终在边的中点上图里面没有0 用0来初始map的值,做标记。第一个规律:从1开始起点按这个右上斜的规律超出边界到反方向第一个第二个规律:2-5,右上的时候超出边界反方向第一个填数字第三个规律:接着右上,到9,10的位置被占用,放在自己的下面这是一个奇数的幻方,行列相等并且为奇数写程序思路:行列需要生气一个二维数组首先初始化标记为0找到起点的位置...
2019-06-30 12:37:15
633
原创 猜数字
随即一个四位数,让用户输入一个四位数,判断输入是否正确,不正确一直允许输入,直到结束。#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include<stdlib.h>#include <time.h>int main(){ srand((unsigned int)time(NULL)); i...
2019-06-29 22:01:14
443
原创 DOS&CMD
DOS Disk Operating System 是磁盘操作系统MS-DOS 核心命令提示符是dos系统的界面中输入dos命令的提示位置command.exe是 Windows NT 命令行接口,不是一个dos窗口;cmd.exe Windows 命令提示符是一个16位的DOS应用程序是 Windows NT 下的一个用于运行 Windows 控制面板程序或某些 DOS 程序的she...
2019-06-29 02:59:40
191
原创 头文件
包含头文件时<>和""的区别 ?<>: 优先从编译器选项路径搜索, 然后搜索环境变量路径, 不会在当前目录寻找“”: 优先从当前目录搜索, 然后搜索<>包含的路径...
2019-06-29 02:58:30
138
原创 内存
顺序访问和随机访问的区别 ?顺序访问: 访问前边代价低, 访问后边代价高随机访问: 访问任意一点, 代价是一样的内存地址是什么 ?内存条中位置对应的编号, 一般使用16进制显示什么是大端小端(大尾小尾)(Big-Endian, Little-Endian) ?大端(大尾): 高数据位存低地址, 低数据位存高地址小端(小尾): 高数据位存高地址, 低数据位存低地址...
2019-06-29 02:57:46
104
原创 伪装IP
.子程序 伪造IP, 整数型, , 本子程序在程序启动后最先执行.局部变量 headers, 文本型.局部变量 address, 文本型.局部变量 url, 文本型.局部变量 协议头, 文本型address = 网页_随机IP ()headers = “”' 这里如果有你自己的协议头 就让headers等于你的协议头,没有的话 就这样直接空headers = headers + ...
2019-06-28 11:33:30
3967
1
原创 结构体
声明结构类型struct date { int month; int day; int year; }; struct date today; today.month=07; today.day=31; today.year=2014; printf("Today's date is %i-%i-%i.\r\n",today.day ,today.month,tod...
2019-06-28 11:31:08
92
原创 随机数a-z,A-Z,0-9
int nMaxLen = 0;void Exhaustive(int n, char* pChose, char* pData, FILE* fp, int nLen){if (n == nMaxLen){//printf("%s\n", pData);//写入文本fputs(pData, fp);fputs("\r\n", fp);}else{//把所有位置从a开始填充...
2019-06-28 10:19:13
753
原创 作用域
C++031 volitileC++作用域全局域或命名空间域局部作用域、块作用域类域 class数据隐藏在不同的作用域可以定义多个相同名字的变量在访问的时候,从内向外查找(块作用域->。。。->全局作用域)namespace 名字空间、命名空间同一个名字空间可以在不同的cpp中拆开写,实际是在同一个空间中名字空间可以嵌套引...
2019-06-28 09:34:21
110
原创 system
system函数的使用#include <stdlib.h>int system(const char *command);功能:在已经运行的程序中执行另外一个外部程序参数:外部可执行程序名字返回值:成功:不同系统返回值不一样失败:通常是 - 1int main(){ //system("calc"); //windows平台 system("ls"); //...
2019-06-28 09:33:29
1538
原创 函数调用约定
进入函数按调用约定传递参数调用约定约定传参方向约定传参介质约定参数销毁的负责方约定返回值位置调用约定_cdecl c约定从右往左传参使用栈空间保存参数由调用方负责销毁参数返回值通常在处理器中_stdcall 跨平台约定从右往左传参,左数前两个参数使用处理器传递,其他由使用栈空间保存参数由调用方负责销毁参数返回值通常在处理器中...
2019-06-28 09:32:10
118
原创 类型
类型基本类型 unsigned singned整型类型整型 int短整型short长整型 long浮点数单精度float双精度double字符类型char构造类型数组类型array结构体类型struct共用体类型enum枚举类型指针类型pointer空类型void自定义类型typedef特点允许直接访问物理地址直接对硬件操作提供对字节...
2019-06-28 09:30:57
109
原创 switch
表 地址在main函数的后面,或者下断点进入switch的汇编 jmp 偏移地址为表地址switch的流程 建立表。参数比对表索引。取相对应的表的值寻址机制 参数索引*(当前环境内存地址字节长度)+表地址case 必须是0常量.生成 编译时间断的索引,引用的default表值...
2019-06-28 09:29:53
162
原创 递归函数
函数的递归函数可以调用自己,这就叫函数的递归void recurse(int i){ if (i > 0) { recurse(i - 1); } printf("i = %d\n", i);}int main(){ recurse(10); return 0;}递归的缺点一个有缺陷的递归会很快耗尽计算机的资源,递归的程序难以理解和维护。C0FD...
2019-06-28 09:28:12
229
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人