How can I do it
int k = 23;
enum stat_t {
first = 0,
second,
last = k
};
May be you know how can I do it?
Use const.
int const k = 23;
enum stat_t {
first = 0,
second,
last = k
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With