该文被密码保护。 阅读全文
posted @ 2019-12-11 22:23 一代枭雄 阅读(33) 评论(0) 推荐(0)
摘要: 1.编写一个程序判断一个变量是不是指针? 拾遗-C++中仍然支持C语言中的可变参数函数-C++编译器的匹配调用优先级1.重载函数2.函数模板3.变参函数 #include <iostream> #include <string> using namespace std; class Test { p 阅读全文
posted @ 2019-12-11 22:10 一代枭雄 阅读(809) 评论(0) 推荐(0)
摘要: C++中如何得到动态类型? #include <iostream> #include <string> using namespace std; class Base { public: virtual string type() { return "Base"; } }; class Derive 阅读全文
posted @ 2019-12-11 21:32 一代枭雄 阅读(218) 评论(0) 推荐(0)