3.9 常量

常量值不能改变,对常量初始化以后不能再对其进行赋值

const double PI=3.1415926

用const来定义常量

posted @ 2015-05-20 14:09  cppstudy  阅读(120)  评论(0)    收藏  举报