enum problem
Phil
phil at spiderweb.com.au
Fri Oct 26 08:06:02 BST 2001
On Thu, 25 Oct 2001 16:41, you wrote:
> On Donnerstag, 25. Oktober 2001 05:43 Phil wrote / Am Donnerstag, 25.
> Oktober
>
>
> why don't you do a second array of names:
>
> char modenames[] = {'a', 'b', 'c', 'd'};
> printf("Mode = %c\n", modenames[(int)mode]);
>
> - Werner -
An excellent alternative to my clumsy switch block, thank you.
--
Regards,
Phil
phil at spiderweb.com.au
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list