S
shy
hello,
i a beginer in C++ programing.
i want to print to the screen an interger number but to keep it with two
digits long (like in a clock). how do i do it with cout function???
exp:
int x=5;
cout... (???)
output:
05
in C it is done like this:
printf ("%2d",x);
how do i do it in C++??
tnx in advance,
shy
i a beginer in C++ programing.
i want to print to the screen an interger number but to keep it with two
digits long (like in a clock). how do i do it with cout function???
exp:
int x=5;
cout... (???)
output:
05
in C it is done like this:
printf ("%2d",x);
how do i do it in C++??
tnx in advance,
shy