标签:变量 bubuko 第三章 print 技术 span image size col
当在类型名前面加上关键字 const 后,表示它是一个只读的量.这种变量不能修改它的值,因而称为常量.
#include<iostream> int main() { const int MAX_SIZE = 1024; printf("a : %d \n",MAX_SIZE); // 读取 const 常量的值 int b = MAX_SIZE; // 将 MAX_SIZE 的值赋值给变量 b printf("b:%d \n",b); return 0; }
标签:变量 bubuko 第三章 print 技术 span image size col
原文地址:https://www.cnblogs.com/QLEO/p/9585015.html