类中允许存在静态常量成员 class Single { const static char c= 2; //类型可以为int,long,char等,但不能为float,double,char*等 }; static成员:在外部初始化 const成员:在初始化列表中初始化