Thread: using setw and setfill

  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