
简单实现
Java、Matlab、C等语言的简单实现
Li.MC
这个作者很懒,什么都没留下…
展开
-
Unity笔记(坑)
Unity笔记(坑)前言UI显示在父层下生成新UI组件在脚本里修改实例属性 前言 Unity把很多操作封装成图形界面,我觉得要实现拓展性功能不太方便,期间踩了不少坑。 UI 显示 在场景下看ui界面可能会出现比例不对的情况,如下 先别急着调整,点击 Game 调整下面的显示比例,再点击 Scene 回去,即可正常显示 在父层下生成新UI组件 在父层(packPanel)下生成的UI(item_example)才能在该层上点击、操作 Instantiate(item_example, packPanel原创 2022-05-03 17:34:45 · 1239 阅读 · 0 评论 -
C语言实现链表的生成、删除、插入
C语言实现链表的生成、删除、插入 讲解视频 讲解视频 /* * Author: Mingchong Li * Email: 19726006@bjtu.edu.cn * Date: 2022/1/8 */ #include <stdio.h> #include <stdlib.h> /* Define the node * If we原创 2022-01-10 00:34:40 · 654 阅读 · 1 评论 -
C语言打字练习小游戏
C语言打字练习小游戏 #include <stdio.h> #include <conio.h> #include <time.h> #include <stdlib.h> #include <windows.h> int getTimeDetail(int index) { time_t timeNow; struct tm *timeType; int year, month, day, hour, min, sec; /* Ge原创 2022-01-10 00:31:13 · 2759 阅读 · 0 评论 -
通过Matlab简单模拟的传染模型
环境设定在一个小城市内: 病毒初期不会被发现且具有传染力 每个人具有移动力,可能与其他人接触 接触感染源则被感染 治愈后不会再被传染 床位有限,确诊患者不一定能够全部住院 初始参数(直接回车则按照预设值模拟): 截图: clear;clc while 2 S = input('传染范围:(=0时为预设)'); if double(isempty(S)) == 1 | S == 0 %这里不知为何,两个条件顺序不可变 S = 200; P =150;原创 2021-05-02 15:57:34 · 1937 阅读 · 0 评论 -
Java基础名词
member A field or method of a class. Unless specified otherwise, a member is not static. 一个类由域和方法构成。 variable An item of data named by an identifier. Each variable has a type, such as int or Object, and a scope. See also class variable, instance variable,翻译 2021-05-02 11:08:49 · 119 阅读 · 0 评论 -
井字棋游戏 Matlab
用matlab写的井字棋游戏; 对手AI的算法按照逻辑判断、标注,选择最优落子点。 %initialize clear clc clf B=zeros(3,3); C=zeros(3,3); % circling % chess board plot([1.5,1.5],[0.5,3.5],'b') hold on plot([2.5,2.5],[0.5,3.5],'b') hold on plot([0.5,3.5],[1.5,1.5],'b') hold on plot([0.5,3.5],[2.5原创 2021-05-02 15:30:08 · 1779 阅读 · 1 评论