3.9 常量

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

const double PI=3.1415926

用const来定义常量

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