Page 1 of 1

messages [Archive] - ForumsHQ

Posted: Sun Feb 17, 2002 12:30 am
by dxpac666
when editing messages, some of them have %s and %d. what are the specific meanings for the s and the d, if any? I hate complicated stuff... I hate it even more when I'm the only person who finds it complicated.

Re: messages [Archive] - ForumsHQ

Posted: Sun Feb 17, 2002 10:00 am
by Aragon
I believe it has to do with whether a string or integer is outputted. In C, %d is integer, and if I'm not mistaken %s would be string.

printf(%d,11111);

printf(%s,"abcde");

Gotta love C++ though..

cout