i have a very basic c++ problem.
this is my problem
first i am assigning an integer.
int i=000;
when i am writing the value of this integer into a file its writing only one "0".
How can i write the all four zero in the file.
actually i have to increment the value of "i=000" to 999.
The desired out put to the file is
000
001
002
003
...
...
...
999
bt iam getting the out put like this
0
1
2
.
.
.
999
please help.