• Advertisement
Sign in to follow this  

String array?

This topic is 4432 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm sure I'm missing something dumb here, but why doesn't this work?
string *IDs = new string[13];

	IDs[0] = "0";
	IDs[1] = "1";
	IDs[2] = "2";
	IDs[3] = "3";
	IDs[4] = "4";
	IDs[5] = "5";
	IDs[6] = "6";
	IDs[7] = "7";
	IDs[8] = "8";
	IDs[9] = "9";
	IDs[10] = "10";
	IDs[11] = "11";
	IDs[12] = "12";

Share this post


Link to post
Share on other sites
Advertisement
When you say it doesn't work, what problem are you getting? A compiler error? A runtime error? Fluffy bunnies jumping out of your speakers?

Share this post


Link to post
Share on other sites
haha whoops. My mistake. It does work. I was looking at the wrong part in VS2005. Sorry for wasting your time :(

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement