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  |
 |
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:
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
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 19:26:48 CEST 2025
Total time taken to generate the page: 0.01818 seconds
|