| View previous topic :: View next topic |
| Author |
Message |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Sun Dec 07, 2008 8:53 pm Post subject: c string array |
|
|
how to make string array?
string s[100]; //doesnt work :( error: expected '=', ',', ';', 'asm' or '__attribute__' before 's' |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sun Dec 07, 2008 9:46 pm Post subject: |
|
|
| urm for one there is no string type in C, you need to create an array of character arrays (or pointers to a allocated character array). If you are trying to use in C++ then make sure you have #include <string> and are using the 'std' namespace. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Mon Dec 08, 2008 7:09 am Post subject: |
|
|
| If you don't even know how to make strings, you shouldn't be trying to program the PSP. Go learn how to program first, then come back. The PSP (or any game console) is not the place to learn how to program - a general purpose PC is. We also don't give beginner lessons here. This is a place for developers to discuss projects related to the PS2/PSP/PS3. |
|
| Back to top |
|
 |
|