<!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta http-equiv="Pragma" content="no-cache"> <meta name="viewport" content="width=device-width, i ...
分类:
其他好文 时间:
2019-01-24 13:15:47
阅读次数:
152
先附上实例: 1 #pragma once 2 //dma.h -- inheritance and dynamic memory allocation 3 #ifndef DMA_H_ 4 #define DMA_H__ 5 #include<iostream> 6 #include<cstrin ...
分类:
编程语言 时间:
2019-01-18 01:00:24
阅读次数:
153
1.防止头文件重复包含 #pragma once 2.VS 兼容C++编译器,如果是C++编译器,按C标准编译; 3.如果数组作为函数参数,数组形参会退化为指针; 4.数据类型 ...
分类:
编程语言 时间:
2019-01-16 22:43:58
阅读次数:
221
Expires: 0 Pragma: no-cache Cache-Control: no-cache ...
分类:
Web程序 时间:
2019-01-06 13:36:54
阅读次数:
207
将写代码过程比较重要的一些代码收藏起来,下边资料是关于C++ 获取PE文件自校验值的代码。 #include#include <imagehlp.h>#pragma comment(lib,"imagehlp") { char szFileName[] = "d:\newupdate.exe"; D ...
分类:
编程语言 时间:
2019-01-05 13:33:09
阅读次数:
234
#include #include #include #include "vfw.h" #pragma comment( lib, "vfw32.lib" ) void main() { char strDeviceVersion[80]; //设备版本信息 char strDeviceAndVer... ...
分类:
其他好文 时间:
2019-01-01 11:11:52
阅读次数:
154
1、C++结构体定义: #pragma pack(1) struct Person { #define Count_favoriteNumbers 6 int id; float favoriteNumbers[Count_favoriteNumbers]; }; #pragma pack() // ...
分类:
编程语言 时间:
2018-12-28 18:27:25
阅读次数:
288
如果爆栈了。。。。试试这个?? 我都没试过) cpp pragma comment(linker, "/STACK:102400000,102400000") int size = 256 ...
分类:
其他好文 时间:
2018-12-27 10:27:11
阅读次数:
117
#pragma pack (n) 作用:C编译器将按照n个字节对齐。#pragma pack () 作用:取消自定义字节对齐方式。 #pragma pack (push,1) 作用:是指把原来对齐方式设置压栈,并设新的对齐方式设置为1个字节对齐 #pragma pack(pop) 作用:恢复对齐状态 ...
分类:
其他好文 时间:
2018-12-24 02:30:08
阅读次数:
118
上一篇用链表实现了stack,这篇我们采用数组来存储数据,数组更容易理解,直接贴代码 第一、代码实现 1 #pragma once 2 #include <iostream> 3 using namespace std; 4 template <typename T> class StackArra ...
分类:
编程语言 时间:
2018-12-23 11:06:37
阅读次数:
196