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
阅读全文
摘要:对类型编写,由于c++不存在 if(type == xxx) {} 这种语法。 类型计算可以使用: 1,重载。 2,虚函数。继承。 3,c语言中利用 Union 查看代码 struct Variant { union { int x; float y; } data; uint32 typeId;
阅读全文