fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. int main(void)
  7. {
  8. int number = 1;
  9.  
  10. cout << internal << setfill('0') << setw(5) << showpos << number << endl;
  11. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
+0001