Effective c++ 改善程序与设计的55个具体做法

条款01:视C++为一个语言联邦

  • C
  • Object-Oriented C++
  • Template C++
  • STL

条款02:尽量以const,enum,inline代替#define

class GamePlayer{
   
private:
	static const int NumTurns=5;
	//测试编译器是否支持
	int scores[NumTurns];
	

你可能感兴趣的:(apollo学习,c++)