Hi all:
Is it possible for an int to print a specific number of digits every time?
For example:
int x = 1;
cout <<x <<endl; //should print 001
x = 999;
cout <<x <<endl; //should print 999
Thanks.
Hi all:
Is it possible for an int to print a specific number of digits every time?
For example:
int x = 1;
cout <<x <<endl; //should print 001
x = 999;
cout <<x <<endl; //should print 999
Thanks.
-Zack