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?
How to use string array with functions? [message #9670] Thu, 24 May 2007 19:39 Go to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
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";


Now i want to use these Strings in another function:

a_function(data[]);


But i got these error:

error: expected primary-expression before ']' token


What's the right way to do it?

Michael

[Updated on: Sun, 27 May 2007 15:09]

Report message to a moderator

 
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: Tue Apr 23 18:35:47 CEST 2024

Total time taken to generate the page: 0.02090 seconds