1. 未知类型的参数前面要加const
即形参是类型的,此细节很容易忘记,如:
BTnode<T>* MakeLinked(const vector<T>& L)
另外,const的几个常见作用:https://blog.csdn.net/xp731574722/article/details/79546790
2. 三个取整函数:ceil,floor,round
ceil:向上取整
floor:向下取整
round:四舍五入
原文链接:https://blog.csdn.net/auccy/article/details/85240674
3. vector的用法
博文链接:
https://blog.csdn.net/wkq0825/article/details/82255984
4. ios::app与ios::ate的区别
留着需要时看:
https://blog.csdn.net/smf0504/article/details/51471576