摘要: DefaultPawn #include "CoreMinimal.h" #include "UObject/ObjectMacros.h" #include "GameFramework/Pawn.h" #include "DefaultPawn.generated.h" class UInput 阅读全文
posted @ 2023-06-20 17:55 言午丶 阅读(91) 评论(0) 推荐(0) 编辑
摘要: C++11引入了一种类模板tuple,实例化的对象可以存储任意数量、任意类型的数据 当存储多个不同类型的元素时,可以用tuple 当函数需要返回多个数据时,可以将这些数据存储在tuple中,返回tuple对象 Tuple #include <tuple> using std::tuple 1.默认构 阅读全文
posted @ 2023-06-20 16:07 言午丶 阅读(28) 评论(0) 推荐(0) 编辑
摘要: Auto Auto关键字用于定义,不能用于声明 auto AddTest(int a, int b) { return a+b; } int main() { auto index = 10; auto str = "abc"; auto ret = AddTest(1, 2); } 阅读全文
posted @ 2023-06-20 15:21 言午丶 阅读(7) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示