using setw and setfill

This is a discussion on using setw and setfill within the C++ Programming forums, part of the General Programming Boards category; im trying to figure out how to setw and setfill this Interior back: 60.00000...

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    3

    using setw and setfill

    im trying to figure out how to setw and setfill this

    Interior back: 60.00000

  2. #2
    Registered User
    Join Date
    Feb 2011
    Posts
    3
    Example:

    Code:
    #include <iostream>
    #include <iomanip>
    int main ()
    {
    	using namespace std;
    	cout << setfill ('0') << setw (8) << "test";
    	cin.get ();
    	return 0;
    }

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21