Quote:
Originally Posted by Andrew Blair
On the topic, can someone describe to me what all the calls mean? /r, /n, d%, %3d, etc?
Always been a mystery to me... I just copy pasta typically.
|
\r - return character, moves cursor to beginning of current line.
\n - newline character, moves cursor down by one.
%d is for ints. You can search online for other variable types. This will display the entire variable.
%3d means display a int three digits in length.
%.3f means display a float with as many digits before the decimal as it needs, but limit it to three digits after the decimal.
%3.2f means display a float with three digits before the decimal, and two digits after the decimal.
All this is off of the top of my head, and may not be correct.
P.S. I like copying pasta as well. Yummy pasta.