自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(67)
  • 资源 (8)
  • 收藏
  • 关注

原创 自增和自减

问题:自增自减时变量的值如何变化?测试软件:Microsoft Visual Studio 2017测试平台:Windows 10 (10.0.17763.0)平台工具集:Visual Studio 2017 (v141)测试过程# include <iostream># include <bitset>using namespace std;int main(){ int x = 123; cout << " 此时x的二进制值是:" <

2021-03-17 17:34:10 150

原创 第13章 用STL简化编程

C++最酷的地方之一就是标准模板库(Standard Template Library,STL)。大多数编译器都支持。模板是可用来创建高级容器的泛化数据类型。例如,可用 list 模板创建整数、浮点数甚至自定义类型的链表。虽然听起来很新奇,但不用担心。STL 是解决许多常见编程问题的有效手段。其出发点很简单。和函数、类和对象一样,既然一个编程问题已经解决,为什么要重新解决一遍?目前,大多数C++编译器都提供了对STL的完整支持。C++14(甚至C++11)编译器肯定都是支持的。13.1 列表模板ST

2021-03-15 23:41:06 380

原创 第12章 两个完整的OOP例子

文章目录12.1 动态对象创建12.2 new 和 delete 的其他用法12.3 二叉树应用Bnode 类Btree 类例12.1 :按字母顺序排序练习12.4 汉诺塔问题:动画版涉及栈类使用 Cstack类例12.2:动画汉诺塔练习小结前两章讲解了类和对象声明的基本语法。现在运用面向对象原则来做一些有趣和有用的事情。首先探讨二叉树,它在编程界很有名,既有趣,又烧脑。接着重拾第5章的汉诺塔例子,新版本用字符动画展示解题过程。但首先要进行一些铺垫。12.1 动态对象创建指针还有另一个用途:建立对

2021-03-10 00:22:57 339

原创 第11章:构造函数

文章目录11.1 构造函数入门多个构造函数(重载)C++/C++14:成员初始化C++ 14默认构造函数C++ 故意用默认构造函数来坑你吗?C++11/C++14:委托构造函数C++ 14例 11.1:Point 类的构造函数练习练习11.1.1练习11.1.2练习11.1.3例11.2:Fraction类的构造函数练习练习11.2.1练习11.2.211.2 引用变量和引用参数(&)11.3拷贝构造函数11.4 将字符串转换为分数的构造函数小结本书要强调的一个主旨在于,面向对象编程(OOP)是创

2021-02-27 11:01:53 442 2

原创 第10章 类和对象

C++最令人着迷的主题之一就是面向对象。理解它并用面向对象编程(Object-Oriented Programming,OOP)技术写了几个程序之后肯定会爱上它。不过,它背后的概念刚开始的时候还是比较模糊,有一定挑战性。总体上说,面向对象是完成分析和设计的一种方式。C++提供了一些有用的工具,但只有理解了OOP设计是什么之后才好用。接着6章将围绕这一主题展开,许多项目不采用面向对象的方式会很难。10.1 理解OOP面向对象编程(OOP)是一种模块化编程方式:对密切相关的代码和数据进行分组。主要规范如

2021-02-14 08:56:52 173

原创 第9章文件:电子存储

文章目录9.1 文件流对象入门引用磁盘文件例9.1 :向文件写入文本练习9.1.1练习9.1.29.1 文件流对象入门C++提供了“文件流”对象,支持和 cin/cout 相同的一套函数调用和操作符。数据就像水一样,从某个来源(如控制台)流出,向某个目标(如文件)流入。通过几个简单的步骤向文件写入。第一步是用 #include <fstream>指令开启对文件流操作的支持:# include <fstream>第二步是创建文件流对象并和磁盘文件关联。我选择 fout 这

2021-01-28 09:46:50 220

原创 第8章 字符串:分析文本

文章目录8.1 计算机如何存储文本计算机如何翻译程序?获取正确的字符串字符串处理函数例 8.1: 构造字符串练习练习 8.1.1练习 8.1.2计算机处理器只理解数字,它们如何与人沟通?答案是通过一种特殊的的编码为每个字母分配编号。这是理解文本字符串的基础,所以本章首先讨论该主题。C++多年来都支持一个高级的string类来简化文本字符串处理。例如,以下代码连接两个字符串,不必关心字符串长度或容量,就是这么神奇! string titled_name = "Sir" + beatle_name本章

2021-01-15 10:26:49 346

原创 第7章 指针

文章目录7.1 指针到底是什么?7.2 指针概念7.3 声明和使用指针例 7.1:打印地址例 7.2:double_it 函数练习练习 7.2.1练习 7.2.2指针就是存储了其他数据的位置的一个变量。这样想指针:对于装满了数据的柜子,更简单的做法是记录它的位置而不是复制全部内容。7.1 指针到底是什么?CPU不懂名称或字母,它用称为“地址”的数字引用内存位置。一般不需要直到具体数字,虽然想的话也可以打印出来。如下图索引,计算机可能将变量a, b 和 c分别存储在数字地址 0x220004, 0x22

2020-07-08 10:28:11 130

原创 UE4 PBR材质设置

2020-06-23 11:35:47 719

原创 尝试解析UE4 第三人称模板(C++)1

*** .h***.cpp#pragma once: 任何以#号开头的行都称为预处理程序指令。可以将预处理程序指令视为编辑器在编译真正的代码之前运行的指令。预处理程序指令以#符号开头,通常以换行结束。可以使用反斜杠(\)实现换行。在该文件中,# pragma once 是一个预处理程序,它用于保护同一个文件不会多次包含。# pragma once 称为头文件保护符。#include :在此文件中,我们看到两个包含文件。一个是GameFramework文件夹中的Character.h(位于UE4目

2020-06-22 15:55:05 782

原创 40 Win Or Lose Screen

// Main.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。///*This is the console executable, that makes use of the BullCow classThis acts as the view in a MVC pattern, and is responsible for alluser interaction. For game logic see the FBullCow class.*/# include.

2020-06-20 16:02:50 139

原创 39 Handling Game Win Condition

// Main.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。///*This is the console executable, that makes use of the BullCow classThis acts as the view in a MVC pattern, and is responsible for alluser interaction. For game logic see the FBullCow class.*/# include.

2020-06-20 15:43:01 123

原创 38 Warm Fuzzy Feelings

// Main.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。///*This is the console executable, that makes use of the BullCow classThis acts as the view in a MVC pattern, and is responsible for alluser interaction. For game logic see the FBullCow class.*/# include.

2020-06-20 15:26:44 148

原创 37 Using switch Statements

学习用C++开发你的第一个游戏(英文) // Main.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。///*This is the console executable, that makes use of the BullCow classThis acts as the view in a MVC pattern, and is responsi...

2020-06-15 22:42:07 100

原创 36 Writing Error Checking Code

学习用C++开发你的第一个游戏(英文) // Main.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。///*This is the console executable, that makes use of the BullCow classThis acts as the view in a MVC pattern, and is responsi...

2020-06-15 17:29:46 130

原创 Ue4 技能系统训练教程 第四次代码分享

// CharacterBase.h// Fill out your copyright notice in the Description page of Project Settings.#pragma once#include "CoreMinimal.h"#include "GameFramework/Character.h"#include "AbilitySystemInterface.h"#include "AbilitySystemComponent.h"#include

2020-06-14 15:38:58 565

原创 Ue4 技能系统训练教程 第三次代码分享

UE4 技能系统训练教程 // CharacterBase.h// Fill out your copyright notice in the Description page of Project Settings.#pragma once#include "CoreMinimal.h"#include "GameFramework/Character.h"#includ...

2020-06-13 19:06:49 305 1

原创 Ue4 技能系统训练教程 第二次代码分享

// AttributeSetBase.h// Fill out your copyright notice in the Description page of Project Settings.#pragma once#include "CoreMinimal.h"#include "AttributeSet.h"#include "AttributeSetBase.generated.h"/** * */UCLASS()class ABILITYSYSTEM_API UAt

2020-06-13 14:48:04 324

原创 UE4 C++编译时 报错信息乱码的解决办法

文章目录环境测试总结1. 更改系统设置,打开UTF-8 (不推荐)。2. 将 编辑器(VS2017)语言包改为只有英文。环境win10,UE 4.20.3,VS 2017(简体中文)测试UE4 更改 编辑器语言,中文乱码,英文也乱码。在VS 直接生成,还是乱码。更改系统设置:在 区域 里打开UTF-8重启之后再测试,ok没问题,UE4中英文都正常。但是据说打开这个很容易出别的问题,所以又改回来了。再次尝试,更改UE4的语言设置没有成功,就更改VS 2017的语言设置于是,清理了解决方

2020-06-13 13:49:59 2415

原创 Ue4 技能系统训练教程 第一次代码分享

UE4 技能系统训练教程 // CharacterBase.h// Fill out your copyright notice in the Description page of Project Settings.#pragma once#include "CoreMinimal.h"#include "GameFramework/Character.h"#includ...

2020-06-13 10:07:06 450

原创 35 Introducing enumerations

学习用C++开发你的第一个游戏(英文) // FBullCowGame.h#pragma once# include <string>using FString = std::string;using int32 = int;// all values intialised to zerostruct FBullCowCount{ int32 Bulls...

2020-06-12 17:19:54 107

原创 34 A Place for Everything

学习用C++开发你的第一个游戏(英文) // FBullCowGame.h#pragma once# include <string>using FString = std::string;using int32 = int;// all values intialised to zerostruct FBullCowCount{ int32 Bulls...

2020-06-12 16:30:41 146

原创 33 Debugging 101

学习用C++开发你的第一个游戏(英文) // FBullCowGame.cpp#include "FBullCowGame.h"using int32 = int;void FBullCowGame::Reset(){ constexpr int32 MAX_TRIES = 8; MyCurrentTry = 1; MyMaxTries = MAX_TRIES; c...

2020-06-11 11:27:27 75

原创 32 Using if Statements in C++

学习用C++开发你的第一个游戏(英文) // FBullCowGame.h#pragma once# include <string>using FString = std::string;using int32 = int;// all values intialised to zerostruct FBullCowCount{ int32 Bulls...

2020-06-11 11:08:14 107

原创 31 Using struct for Simple Types

学习用C++开发你的第一个游戏(英文) // FBullCowGame.h#pragma once# include <string>using FString = std::string;using int32 = int;// all values intialised to zerostruct BullCowCount{ int32 Bulls =...

2020-06-11 10:39:57 77

原创 30 Using using for Type Aliases

学习用C++开发你的第一个游戏(英文) // FBullCowGame.h#pragma once# include <string>using FString = std::string;using int32 = int;class FBullCowGame {public: FBullCowGame(); // constructor int3...

2020-06-10 16:58:44 82

原创 29 Pseudocode Programming

学习用C++开发你的第一个游戏(英文) // FBullCowGame.h#pragma once# include <string>class FBullCowGame {public: FBullCowGame(); // constructor int GetMaxTries() const; int GetCurrentTry() const; ...

2020-06-10 16:22:40 141

原创 28 Constructors For Initialisation

学习用C++开发你的第一个游戏(英文) // FBullCowGame.h#pragma once# include <string>class FBullCowGame {public: FBullCowGame(); // constructor int GetMaxTries() const; int GetCurrentTry() const; ...

2020-06-10 15:48:24 96

原创 27 Introducing the Const Keyword

学习用C++开发你的第一个游戏(英文) // FBullCowGame.h#pragma once# include <string>class FBullCOwGame {public: int GetMaxTries() const; int GetCurrentTry() const; bool IsGameWon() const; void R...

2020-06-10 15:14:01 196

原创 26 Writing & Using Getter Methods

学习用C++开发你的第一个游戏(英文) // FBullCowGame.h#pragma once# include <string>class FBullCOwGame {public: void Reset(); //ToDo make a more rich return value. int GetMaxTries(); int GetCurrentT...

2020-06-10 14:42:52 97

原创 25 Instantiating Your Class

undefined // CowBull.cpp重命名为Main.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。//# include <iostream># include <string> // 引入string 库# include "FBullCowGame.h"void PrintIntro();vo...

2020-06-10 14:14:29 92

原创 24 Including Our Own Header File

学习用C++开发你的第一个游戏(英文) // CowBull.cpp重命名为Main.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。//# include <iostream># include <string> // 引入string 库void PrintIntro();void PlayGame();st...

2020-06-10 11:34:42 99

原创 23 using Header Files as Contracts

学习用C++开发你的第一个游戏(英文) // FBullCowGame.h#pragma onceclass FBullCOwGame {public: void Reset(); //ToDo make a more rich return value. int GetMaxTries(); int GetCurrentTry; bool IsGameWon();...

2020-06-10 11:06:02 82

原创 21 using do and while in C++

学习用C++开发你的第一个游戏(英文) # include <iostream># include <string> // 引入string 库using namespace std; // 引入命名空间std,之后的cout 和 endl 就不用再加上std:: 了void PrintIntro();void PlayGame();s...

2020-06-09 17:36:14 82

原创 20 booleans and comparisons

学习用C++开发你的第一个游戏(英文) # include <iostream># include <string> // 引入string 库using namespace std; // 引入命名空间std,之后的cout 和 endl 就不用再加上std:: 了void PrintIntro();void PlayGame();s...

2020-06-09 17:15:51 121

原创 19 Clarity is Worth Fighting For

学习用C++开发你的第一个游戏(英文) # include <iostream># include <string> // 引入string 库using namespace std; // 引入命名空间std,之后的cout 和 endl 就不用再加上std:: 了void PrintIntro();void PlayGame();st...

2020-06-09 12:27:31 93

原创 18 Iterating With For & While Loops

学习用C++开发你的第一个游戏(英文) # include <iostream># include <string> // 引入string 库using namespace std; // 引入命名空间std,之后的cout 和 endl 就不用再加上std:: 了void PrintIntro(); string GetGuessAn...

2020-06-08 18:52:20 86

原创 17 simplifying with functions

学习用C++开发你的第一个游戏(英文) # include <iostream># include <string> // 引入string 库using namespace std; // 引入命名空间std,之后的cout 和 endl 就不用再加上std:: 了void PrintIntro(); string GetGuessAn...

2020-06-08 18:24:23 111

原创 16 Using getline()

# include <iostream># include <string> // 引入string 库using namespace std; // 引入命名空间std,之后的cout 和 endl 就不用再加上std:: 了int main(){ // 介绍游戏 constexpr int WORLD_LENGTH = 5; // 定义一个变量让单词的长度可变 cout << "Welocm to Bulls and Co..

2020-06-08 17:43:34 81

原创 第6章 接触数组

文章目录6.1 C++数组初探6.2 初始化数组6.3 基于零的索引数组 是由类似的数据项(称为“元素”)组成的数据结构,而且数据项的数量任意。6.1 C++数组初探如果要声明5个变量,我们可以这样:double scores1, scores2, scores3, scores4, scores5;这要打好多字,如果用数组,我们可以这样:double scores[5]; //声明double类型的5个数据项scores[0], scores[1], scores[2], scores[

2020-06-08 16:40:08 131

UE4技能系统全面训练最后的代码.zip

UE 4 虚幻引擎游戏开发综合开发能力训练(技能系统的练习)视频教程 全部完结。这是最终全部写完的代码,可以拿来对照。

2020-06-18

UE4虚幻引擎游戏开发综合开发能力训练视频教程(英文字幕).zip

UE 4 虚幻引擎游戏开发综合开发能力训练(技能系统的练习)视频教程 原本视频的字幕文件,英文,共72小节

2020-06-18

UE4虚幻引擎游戏开发综合开发能力训练视频教程.zip

UE 4 虚幻引擎游戏开发综合开发能力训练(技能系统的练习)视频教程 用到的资源的总和集,有贴图,UI和模型。

2020-06-15

AbilitySystem_038.zip

UE 4 虚幻引擎游戏开发综合开发能力训练(技能系统的练习)视频教程 截至于第038节课之前所写的代码集合,解压后,里面有图片,显示项目所在路径

2020-06-15

040 Dash-Ability-UI-Asset.zip

UE 4 虚幻引擎游戏开发综合开发能力训练(技能系统的练习)视频教程 第5小节 Health Regen Ability 所使用到的贴图

2020-06-14

HealthRegen-Ability-UI-Asset.zip

UE 4 虚幻引擎游戏开发综合开发能力训练(技能系统的练习)视频教程 第4小节 Health Regen Ability 所使用到的贴图

2020-06-14

trail-red.zip

帖子高亮材质 01,变色材质 01,折射材质 01和溶解材质 01,里面用到的贴图资源。格式为TGA,请确定你有可以打开这种格式的软件。

2020-06-06

遮罩纹理贴图.zip

这个帖子里所用到的贴图,共三张,TGA格式,分别是cloud,cloudmask和cloudroller。

2020-06-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除