Archived

This topic is now archived and is closed to further replies.

gamechampionx

Help

Recommended Posts

gamechampionx    140
I have a question. What is the VB equivalent of switch? On a separate note, using string.h, I have an array of characters set up. It seems that I don''t need an extra character for ''\0''. Is this correct?

Share this post


Link to post
Share on other sites
Oluseyi    2103
quote:
Original post by gamechampionx
On a separate note, using string.h, I have an array of characters set up. It seems that I don''t need an extra character for ''\0''. Is this correct?

No. C-style strings always require null termination.

Can''t help you with the VB switch, though...

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ ]
[ MS RTFM [MSDN] | SGI STL Docs | Boost ]
[ Google! | Asking Smart Questions | Jargon File ]
Thanks to Kylotan for the idea!

Share this post


Link to post
Share on other sites