Answers for "iomanip header file"

C++
3

iomanip

// setfill example
#include <iostream>     // std::cout, std::endl
#include <iomanip>      // std::setfill, std::setw
using namespace std;

int main () {
  cout << setfill ('x') << setw (10);
  cout << 77 << endl;
  return 0;
}
Posted by: Guest on November-12-2020

Browse Popular Code Answers by Language