摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MaxHeap { public class M 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEngine; public class CombineSkinnedMeshMananger { private co 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public enum GridType { None =0, Road, Obstacle, } public class Grid { p 阅读全文
摘要:
一 .:self lua编程中,经常遇到函数的定义和调用,有时候用点号调用,有时候用冒号调用。 Account={num=0}; function Account.Minus(self,num) self.num=self.num-num; end function Account:AddNum(n 阅读全文
摘要:
Lua支持逻辑运算符: and or 和not。将boolean的类型false和nil当作假,而把其他值当作真(短路运算) >4 and 5 -->5 >nil an 13 -->13 >false and 22 -->false >0 or 5 >5 在Lua语言中,形如x=x or v的习惯写 阅读全文
摘要:
父类中所有的非静态成员属性都会被子类继承下去,父类中的私有成员属性,是被编译器隐藏了,因此访问不到,但是确实被继承了下去。 #include <iostream> using namespace std; class Father { public: int A; private: int B; } 阅读全文