码迷,mamicode.com
首页 >  
搜索关键字:pragma autonomous_tr    ( 2499个结果
设计模式-Command(行为模式) 将一个请求封装到一个Command类中,提供一个处理对象Receiver,将Command由Invoker激活。
//方式一 //Reciever.h #pragma once class Reciever{ public: Reciever(); ~Reciever(); void Action(); protected: private: }; //Reciever.cpp #include"Recieve ...
分类:其他好文   时间:2019-12-23 19:08:20    阅读次数:91
设计模式-(Memento)在不破坏封装性的前提下,捕捉类内的一个状态信息,并根据这个信息进行恢复。
以下代码来源: 设计模式精解-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
设计模式-Strategy Strategy将算法封装到类中,通过组合的方式 将具体算法的实现在组合对象中实现
以下代码来源: 设计模式精解-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”
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
设计模式-Proxy(结构型模式)
以下代码来源: 设计模式精解-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
设计模式-Composite(结构型模式) 用于 递归构建 树 状 的组合结构,与Decorator的区别是 Composite旨在通过构造子类而添加新操作,而Decorator直接添加新操作。
以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Component.h #pragma once class Component { public: Component(); virtual ~Component(); virtual void Operation() ...
分类:其他好文   时间:2019-12-21 19:03:40    阅读次数:86
设计模式-Bridge(结构型模式)-用于客户需求较多,频繁对类进行添加修改的情形,将抽象类与具体实现类分开
以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //AbstractionImp.h #pragma once class AbstractionImp { public: virtual ~AbstractionImp(); virtual void Operation( ...
分类:其他好文   时间:2019-12-21 15:18:47    阅读次数:80
设计模式-Prototype(通过复制构造函数实现自我复制)-(创建型模式)
以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Prototype.h #pragma once class Prototype { public: virtual ~Prototype(); virtual Prototype* clone() const = 0; ...
分类:其他好文   时间:2019-12-21 00:21:38    阅读次数:99
socket,实现服务器和客户端对话
服务器: #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
UE4 与 C++
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
2499条   上一页 1 ... 13 14 15 16 17 ... 250 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!