- Code: Select all
sprintf(text, "%s", "value should be here") // i dont really know what does the '%s' for.
but my problem now is... I don't know how to use that to change the others text.
sprintf(text, "%s", "value should be here") // i dont really know what does the '%s' for.
skydereign wrote:Well, if you are just changing characters, I'd suggest using the characters. Essentially you have a variable that holds the cursor position (which is essentially the position in the array). Then you can just use string[var]='A', and similar. Whenever you type a new letter, that'll make the _ that was there something else, and then increase the variable (cursor position) so that when you type another, it changes the next.
skydereign wrote:Well, if you are just changing characters, I'd suggest using the characters. Essentially you have a variable that holds the cursor position (which is essentially the position in the array). Then you can just use string[var]='A', and similar. Whenever you type a new letter, that'll make the _ that was there something else, and then increase the variable (cursor position) so that when you type another, it changes the next.
if (spacechar==0){
if (Name[0]=='_'){
if (lettercase==0){
Name[0] = 'a';
spacechar++;
} else {
Name[0] = 'A';
}
}
}
Name[0] = (lettercase==0) ? 'a' : 'A' ;
if (spacebar==0){ // which means if first bar is empty then
Name[0] = 'A';
sprintf(text, '%s', Name[0]); // i need to know how to change the first bar text by this but this changes the thing you click
}
sprintf(text, "%s", Name);
Users browsing this forum: No registered users and 1 guest