Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » How to use string array with functions?
Re: How to use string array with functions? [message #9715 is a reply to message #9670] Sun, 27 May 2007 15:03 Go to previous messageGo to previous message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
michael wrote on Thu, 24 May 2007 19:39

I'm using a String array:

String data[4];

data[0] = "string_0";
data[1] = "string_0";
data[2] = "string_0";
data[3] = "string_0";
data[4] = "string_0";




use only data[0] to data[3] !!!! you created an array with 4 elements not up to 4 !

Bas
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to access other classes variables?
Next Topic: Trouble with pointers.
Goto Forum:
  


Current Time: Sat May 04 07:19:45 CEST 2024

Total time taken to generate the page: 0.02339 seconds