Quick question
#1

Is it possible to capitalize a certain word without like typing it in capitals?

For example,

My string is 'Johnny'. I want it all to be in capital letters, without having to manually type it.
Reply
#2

Yes use loop with strlen then toupper

pawn Код:
for(new i = strlen(string)-1; i > -1; i--)
    string[i] = toupper(string[i]);

// now 'string' is JOHNNY
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)