Ok im sorry im asking so many questions but now i have ANOTHER problem. How do i edit and add onto strings??
message += "a";
i try it like this, but it doesnt work, how would i code this correctly???
does anyone know how to do this??
please?
EDIT::Looked at some source code, fixed it
Ok im sorry im asking so many questions but now i have ANOTHER problem. How do i edit and add onto strings??
message += "a";
i try it like this, but it doesnt work, how would i code this correctly???
Use strncat
char *strncat(char * restrict s1,const char * restrict s2, size_t n);
The strncat function appends not more than n characters (a null character and characters that follow it are not appended) from the array pointed to by s2 to the end of the string pointed to by s1. The initial character of s2 overwrites the null character at the end of s1. A terminating null character is always appended to the result.Thus, the maximum number of characters that can end up in the array pointed to by s1 is strlen(s1)+n+1. If copying takes place between objects that overlap, the behavior is undefined.
try learning lua its alot easier
thank you very jamoot, it works, and ticth, i don't want to learn lua right now because im only 13 and might be a video game designer so it might help if i know the basics of C.
EDIT::How would I clear a string??
Please?????
It would help if you show us a little bit of code, so people can see exactly what it is your doing.
Ok, im trying to make an ad-hoc messenger, i just started coding for the psp so im not very good. For the ad-hoc stuff i will be using this tutorial.
forums.qj.net/archive/index.php/t-55788.html so you dont need to worry about that.
I wanted to do this because i have not found one of these and would like one(if there is one plz tell me) I am now working one the text editing stuff, right now only one letter works(but i know how to make them all work) and i need to now how to backspace or clear the text or something, ive included my source code, makefile, and images.
I think you should use your Space Invader Assault Ship
to shoot the letters ,
so they disappear..
Why?!?!?!?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks