C++ has two type of constants: literal and symbolic.
literal constants example:
int myAge = 26; //26 is a literal constant, you can't assign a value to 26 and it's value can't be changed.
symbolic constants example:
const int birthYear = 1986;// birthYear is a symbolic constants. it must assign value when defint and can't change it's value later.
阅读(1233) | 评论(0) | 转发(0) |