摘要: 对类型编写,由于c++不存在 if(type == xxx) {} 这种语法。 类型计算可以使用: 1,重载。 2,虚函数。继承。 3,c语言中利用 Union 查看代码 struct Variant { union { int x; float y; } data; uint32 typeId; 阅读全文
posted @ 2022-10-04 11:40 Bigben 阅读(59) 评论(0) 推荐(0) 编辑