10 2022 档案

摘要:Rust vs C++: An in-depth language comparison Feb 26, 2021 - 8 min read Amanda Fawcett Rust versus C++ is a recent trending topic for developers. There 阅读全文
posted @ 2022-10-28 15:54 Bigben 编辑
摘要:对类型编写,由于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 阅读(66) 评论(0) 推荐(0) 编辑

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