News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

c++ tutorial - formatted output in c++ using iomanip

Started by ben2ong2, October 02, 2006, 07:57:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ben2ong2

Creating cleanly formatted output is a common programming requirement--it improves your user interface and makes it easier to read any debugging messages that you might print to the screen. In C, formatted output works via the printf statement, but in C++, you can create nicely formatted output to streams such as cout. This tutorial covers a set of basic I/O manipulations possible in C++ from the iomanip header file. Note that all of the functions in the iomanip header are inside the std namespace, so you will need to either prefix your calls with "std::" or put "using namespace std;" before using the functions.
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login