[TOC] 8 预处理 SWIG includes its own enhanced version of the C preprocessor. The preprocessor supports the standard preprocessor directives and macro exp ...
分类:
其他好文 时间:
2019-12-28 13:01:48
阅读次数:
356
#include <iostream> #include <cmath> #include <cfloat> #include <cstdlib> #pragma warning(disable: 4996) #pragma warning(disable: 4305) #pragma warnin ...
分类:
编程语言 时间:
2019-12-27 23:20:51
阅读次数:
89
代码: C++ include include pragma comment(lib,"psapi.lib") void GetPathByProcessId(DWORD dwPid) { //使用PROCESS_ALL_ACCESS 需要提权这里我直接扣出来的.提权代码看另一篇. HANDLE h ...
//以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Aggregate.h #pragma once class Iterator; typedef int Object; class Interator; class Aggregate { public: virtu ...
分类:
其他好文 时间:
2019-12-24 11:44:56
阅读次数:
82
//方式一 //Reciever.h #pragma once class Reciever{ public: Reciever(); ~Reciever(); void Action(); protected: private: }; //Reciever.cpp #include"Recieve ...
分类:
其他好文 时间:
2019-12-23 19:08:20
阅读次数:
91
以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Memento.h #pragma once #include<string> class Memento; class Originator{ public: typedef std::string State; Ori ...
分类:
其他好文 时间:
2019-12-23 15:03:30
阅读次数:
112
以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //strategy.h #pragma once class Strategy { public: Strategy(); virtual ~Strategy(); virtual void AlgrithmInferenc ...
分类:
编程语言 时间:
2019-12-22 16:15:29
阅读次数:
92
Unity shader error: “Too many texture interpolators would be used for ForwardBase pass” 解决方法:CGPROGRAM 下加一行:#pragma target 4.0示例如下: Ref: https://www.c... ...
分类:
数据库 时间:
2019-12-22 10:55:06
阅读次数:
107
以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Proxy.h #pragma once class Subject { public: virtual ~Subject(); virtual void Request() = 0; protected: Subject ...
分类:
其他好文 时间:
2019-12-21 22:14:58
阅读次数:
85
以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Component.h #pragma once class Component { public: Component(); virtual ~Component(); virtual void Operation() ...
分类:
其他好文 时间:
2019-12-21 19:03:40
阅读次数:
86