Jump to content
  • Advertisement
Sign in to follow this  

String array?

This topic is 4523 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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!