forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

c string array

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Sun Dec 07, 2008 8:53 pm    Post subject: c string array Reply with quote

how to make string array?
string s[100]; //doesnt work :( error: expected '=', ',', ';', 'asm' or '__attribute__' before 's'
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sun Dec 07, 2008 9:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Dec 08, 2008 7:09 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group