//方式一 //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
以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //AbstractionImp.h #pragma once class AbstractionImp { public: virtual ~AbstractionImp(); virtual void Operation( ...
分类:
其他好文 时间:
2019-12-21 15:18:47
阅读次数:
80
以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Prototype.h #pragma once class Prototype { public: virtual ~Prototype(); virtual Prototype* clone() const = 0; ...
分类:
其他好文 时间:
2019-12-21 00:21:38
阅读次数:
99
服务器: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string>#include<WinSock2.h> //网络库用2.2版本 目前系统的最高版本#pragma comment(lib,"Ws2_32.lib") //加载动 ...
分类:
其他好文 时间:
2019-12-17 00:22:21
阅读次数:
129
1 #pragma once 2 3 #include "CoreMinimal.h" 4 #include "GameFramework/Character.h" 5 #include "BaseCharacter.generated.h" 6 7 UCLASS(Blueprintable) 8 ...
分类:
编程语言 时间:
2019-12-16 14:50:21
阅读次数:
153