03 2019 档案

摘要:根:类中定义的任何静态字段,方法的参数,局部变量(仅限引用类型变量)等都是根,另外cpu寄存器中的对象指针也是根 。根是在堆之外可以找到的各种入口点。 对象可达与不可达:如果一个根引用了堆中的一个对象,则该对象为可达,否则是不可达。 垃圾回收的基本原理:回收分为两个阶段:标记和压缩,标记的过程就是判 阅读全文
posted @ 2019-03-31 17:16 mc宇少 阅读(862) 评论(0) 推荐(0) 编辑
摘要:// C# 源码 public class List<T> : IList<T>, System.Collections.IList, IReadOnlyList<T> { private const int _defaultCapacity = 4;//默认容量为4 private T[] _it 阅读全文
posted @ 2019-03-30 22:50 mc宇少 阅读(697) 评论(2) 推荐(0) 编辑
摘要:Dictionary Dictionary与hashtable的区别:dictionary支持泛型。 通常处理哈希冲突的方法有:开放地址法,再哈希法,链地址法,建立一个公共栈区等。 在哈希表上进行查找的过程和哈希造表的过程基本一致。给定k值,根据造表时设定的哈希函数求得哈希地址,若表中此位置没有记录 阅读全文
posted @ 2019-03-30 22:48 mc宇少 阅读(301) 评论(0) 推荐(0) 编辑
摘要:1.以.开头的文件夹会被unity忽略,资源不会被导入,脚本不会编译。 2.Standard Assets和Pro Standard Assets:在这个文件夹中的脚本最先被编译。 3.Editor:以Editor命名的文件夹允许其中的脚本访问Unity Editor的API。如果脚本中使用了在Un 阅读全文
posted @ 2019-03-29 22:47 mc宇少 阅读(524) 评论(0) 推荐(0) 编辑
摘要:#include<iostream>#include<cstdio>#include<algorithm>using namespace std; int main(){ string str; cin>>str; sort(str.begin(), str.end()); do { cout<<s 阅读全文
posted @ 2019-03-15 23:54 mc宇少 阅读(108) 评论(0) 推荐(0) 编辑
摘要:n&1==0:偶数 n&1!=0:奇数 阅读全文
posted @ 2019-03-15 08:24 mc宇少 阅读(180) 评论(0) 推荐(0) 编辑
摘要:#include<cstring>#include<iostream>#include<stack>#include <algorithm>using namespace std; int dp[100][100];char D[100][100];stack<char> st;string s1, 阅读全文
posted @ 2019-03-11 22:32 mc宇少 阅读(141) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示