Mega Code Archive
Categories
/
C++
/
Console
Demonstrate an IO manipulator
#include
#include
using namespace std; int main() { cout << setprecision(2) << 1000.243 << endl; cout << setw(20) << "Hello there."; return 0; }