Am I missing something or is there a way to convert strings between say stringc/w and c8?
Also is there a way to directly assign a string to a c8? like so:
c8 string1;
string1="gkldhkgj";
Converting strings..
for converting search the forum, please !!!
You can define a string like this:look the api for more information...
You can define a string like this:
Code: Select all
string<c8> myString;
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Please note that c8 means character, so it is only one letter. You cannot assign a complete string to it. And if you use c8* pointers you have to care for memory handling on your own (as always with pointers). So better stay with strings and use stringvar.c_str() to get the C char pointer for routines which only take character pointers.