This preview shows page 1. Sign up to view the full content.
Unformatted text preview: cout << total << "\n\n"; // use two newline characters to skip line // Display total with fixed precision cout << "Total with formatting:\n"; cout.setf(ios::fixed); cout << setprecision(2) << total << "\n\n"; return 0; }...
View Full Document
This note was uploaded on 06/20/2011 for the course COMPUTING 379 taught by Professor Dr.anoopsarkar during the Spring '11 term at American College of Computer & Information Sciences.
- Spring '11