Question 2.24

Is there an easy way to print enumeration values symbolically?


No. You can write a little function to map an enumeration constant to a string. (If all you're worried about is debugging, a good debugger should automatically print enumeration constants symbolically.)


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback