spider

导航

 

2021年6月2日

摘要: 一、环境搭建 操作系统:win10 编辑器:visual studio 2017 (1)下载vulkanSDK https://vulkan.lunarg.com/sdk/home 记住安装路径,创建项目是需要用到 (2)使用visual studio 的nuget包管理器下载glm和glfw库 g 阅读全文
posted @ 2021-06-02 21:10 黑色spider 阅读(174) 评论(0) 推荐(0) 编辑
 

2020年12月27日

摘要: 好久没有更新博客了,蓝廋啊。 今天写一写关于GripLayoutGroup组件的屏幕适配问题,以在ARPG游戏中常用的经验条适配来举例子,以此来加深自己的记忆,以便在下次需要制作该功能时能够快速完成。 以上是效果截图。 一,制定标准宽高 二,了解GridLayoutGroup组件 在该组件所在物体的 阅读全文
posted @ 2020-12-27 15:32 黑色spider 阅读(1251) 评论(0) 推荐(0) 编辑
 

2020年10月29日

摘要: 0-1背包问题属于动态规划范畴。什么是动态规划?就是当前问题的解依赖于子问题的最优解。 个人认为对于0-1背包解释较好的博文:https://www.cnblogs.com/strick/p/13403324.html 本文只给出C#代码实现。 class goods { public int we 阅读全文
posted @ 2020-10-29 10:45 黑色spider 阅读(207) 评论(0) 推荐(0) 编辑
 

2020年9月9日

摘要: https://www.cnblogs.com/nafio/p/12789848.html 阅读全文
posted @ 2020-09-09 15:36 黑色spider 阅读(204) 评论(0) 推荐(0) 编辑
 

2020年7月20日

摘要: // 代码段 1 double a = 1.5; const int & b = a; //必须有const不然报错 a = 2.5; cout << a << " " <<b<< endl; // 输出 a = 2.5 b = 1; // 代码段 2 int c= 2; const int &d 阅读全文
posted @ 2020-07-20 15:37 黑色spider 阅读(4045) 评论(0) 推荐(0) 编辑
 

2020年6月20日

摘要: 1.vector vector<int> data1; 2.deque deque <int> data2; 逆序排序方式: 方式1.使用reverse函数 (内置数据类型可以使用这种) sort(data1.begin(),data1.end()); // vector先升序 sort(data2 阅读全文
posted @ 2020-06-20 23:21 黑色spider 阅读(1984) 评论(0) 推荐(0) 编辑
 
摘要: #include<vector> //创建容器 vector <int> v1; v1.push_back(1); v1.push_back(2); v1.push_back(3); v1.push_back(4); // 第一种遍历方式 //vector<int> ::iterator start 阅读全文
posted @ 2020-06-20 09:58 黑色spider 阅读(2688) 评论(0) 推荐(0) 编辑
 

2020年6月17日

摘要: 先来看看以下问题 int count = 0; while (getline(ifs,temp)) { count++; } cout<<count <<endl; // 假设输出count为2 count = 0; // 重置 while (getline(ifs,temp)){count++;} 阅读全文
posted @ 2020-06-17 23:09 黑色spider 阅读(1170) 评论(0) 推荐(0) 编辑
 

2020年6月15日

摘要: 一、文件的写入 1 // 写文件操作 文本文件写入 2 ofstream ofs; 3 ofs.open("temp.txt",ios::out); 4 ofs << "姓名:张三" << endl; 5 ofs << "性别:男" << endl; 6 ofs << "学校:楚雄师范学院" << 阅读全文
posted @ 2020-06-15 14:38 黑色spider 阅读(1176) 评论(0) 推荐(0) 编辑
 

2020年5月22日

摘要: text.DOText(arg0,arg1).SetEase(Ease.Linear).onComplete = () => { }; 阅读全文
posted @ 2020-05-22 12:41 黑色spider 阅读(1189) 评论(0) 推荐(0) 编辑