I'm confused because I thought the sprintf function returned a string, and it shows on cplusplus.com that it returns an int? Why?
Basically, I'm having trouble with the following line, where I'm trying to pad some spacing and format a string simultaneously:
printf("%30s", sprintf("1.10f", modeTimeTotal/num_tests));
There error I get is:
cannot convert 'double' to 'const char*' for argument '2' to 'int sprintf(char*, const char*, ...)'