In c++, there are two way to create symbolic constant.
- using const keyword
- using enum keyword
using const keyword
const float pi=3.14;
using enum keyword
enum GameLabels{
Label1, Label2, Label3
}
By default all label has default value 0,1,2 and so on.