[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
Подскажите флаги преобоазование величин в функции sprintf для печати целых величин
Использовал: val=15;
E-mail:
info@telesys.ru
#include
char buf[5];
unsigned val;
sprintf(buf,"%2d",15); - не работает
Использовал:
sprintf(buf,"%02.0f",(float)val);
Ответы