Formatting String
Do you have an idea how to change Name2 and Name3 in the following example ? Formatting that way is obviously wrong...
Code:
#define MAXADMIN 3 Many thanks! |
Re: Formatting String
it's not wrong to use format. but create the string if a bigger lenght, like string[3][32], so it will fit the newname2 and be aware that string[1] refers to name2. the index goes from 0 to 2, not from 1 to 3, you would probably receive an error.
|
Re: Formatting String
You'll want to do sizeof(Name[]), and also remember that array indexes start at 0, so Name[3] is invalid.
|
Re: Formatting String
thats it, thanks.
|
All times are GMT -4. The time now is 18:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.