首页
CALL1CE
取消

PAT-Dating & Group Photo & 判断字符是字母还是数字的函数

A1061 Dating #include<iostream> #include<cstdio> #include<vector> #include<string> using namespace std; string Day[7] = {"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"}; i...

PAT-Speech Patterns & Read Number in Chinese & string的erase()用法

A1071. Speech Patterns #include<iostream> #include<unordered_map> #include<string> #include<cctype> using namespace std; int main() { string s;//用来存储input getline(c...

虚拟场景设计笔记

1. 导入模型与UE5的操作设置 将布局改为Ue5(之前做2d游戏改成UE4的经典布局了),window->load layout选择即可 先创建一个空的level 加一个定向光源directional light 添加一个天空大气环境,visual effects -> sky atmosphere ...

Learn How To Make A 2D Platformer In Unreal Engine 5学习笔记#6&7关卡设计和最后的优化

6.1Designing A Level 去修改之前创建的tileset_tilemap,大小60*20 layer命名main fill类似油漆桶,很方便,设计main的tile 创建一个layer,命名Treebackground,放几棵树,如果发现有些地方框选不到,那就到tileset里调整tilesize ...

CCF CSP-灰度直方图 & 邻域均值

    听说山大夏令营要机试,内容是csp类型的题,暂时就先停停PAT吧,等8月份再开刷,到时候也没项目做了,可以专心准备机试了,估计还有大概一周左右山大就要开营了,先刷一周CSP好了,熟悉下题型。 争取每天两三道吧。 202104-1. 灰度直方图 #include<iostream> #include<vector> using namespace std; ...

Learn How To Make A 2D Platformer In Unreal Engine 5学习笔记#5生命、检查点、拾取、音效与贴图

demo演示地址:Learn How To Make A 2D Platformer In Unreal Engine 5学习笔记#5生命、检查点、拾取、音效与贴图 5.1How to create a moving platform 创建一个actor蓝图,命名moving platform 添加paper sprite,设置为灰色块 ...

UE5 Widget蓝图中为text内容绑定时部分float变量不可见

    在2dCharacter中创建了Lives变量(float),但在playerHud_WB中text的content上bind该变量时,发现找不到(明明可以看到像Melee Damage这样的float值),换成integer类型后就可以看到了,但这治标不治本,万一下次真的需要用到包含小数的变量呢?               去论坛查了查,受到了点启发,点击create bin...

PAT-Kuchiguse & Stucked Keyboard & getline()用法

A1077. Kuchiguse #include<iostream> #include<vector> #include<string> using namespace std; int main() { int N;//记录有几个句子 int minLength = 257;//记录句子最短长度 vector<char...

Learn How To Make A 2D Platformer In Unreal Engine 5学习笔记#4伤害系统

demo演示地址:Learn How To Make A 2D Platformer In Unreal Engine 5学习记录#4伤害系统 4.1Damaging The Enemy 把enemies文件夹托在content里 进入enemy蓝图 新建event anydamage节点 进入enemy str...

PAT-The Dominant Color & Set Similarity

A1054. The Dominant Color #include<iostream> #include<unordered_map> using namespace std; int main() { int M,N; cin>>M>>N; unordered_map<string, int> m;/...