2019年1月24日
摘要: 一、函数调用运算符 如果类重载了函数调用运算符,则我们可以像使用函数一样使用该类的对象。因为这样的类同时也能存储状态,所以与普通的函数相比它们更加灵活。 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 5 class a 阅读全文
posted @ 2019-01-24 15:30 acgame 阅读(650) 评论(0) 推荐(0) 编辑