What I'm trying to is to write something like this
file << someFunction(5) << hex << 3;
And to get an output like this 00003
instead of 3 (and 300 will be 00300, etc)
Note:- Sorry if this was asked before, I don't know what term to search for to get this
EDIT:- I mean the zero's to the left, i included the hex part just to be clear I want it to be compatible with this format