View Single Post
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#7
If you have a max expected width, say 6 digits:

printf("Gross Amount: ............ $%6.2f",value);

Nice thing about C++, you can still use C. Just saying.
__________________
Maemo Council Member: May 2012 - November 2012
Hildon Foundation founding member.
Hildon Foundation Board of Directors: March 2013 - Jan 15, 2014
 

The Following 4 Users Say Thank You to woody14619 For This Useful Post: