C++ Iomanip

This is a discussion on C++ Iomanip within the C++ Programming forums, part of the General Programming Boards category; I'm just wondering what exactly does #include <iomanip> do? I've been looking it but I'm not really understanding what exactly ...

  1. #1
    Registered User hungrymouth's Avatar
    Join Date
    Oct 2012
    Posts
    19

    C++ Iomanip

    I'm just wondering what exactly does #include <iomanip> do? I've been looking it but I'm not really understanding what exactly it does to a code. If anyone can explain to me thanks.

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    3,268
    By it's self it does nothing to your code. It allows you to use the functions it prototypes in your program, for example the setw() manipulator is prototyped in this header.

    Jim

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,630
    It includes a header that allows you to use some functionality in the standard library that has to do with I/O stream manipulation.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. stringstream + iomanip
    By Jaken Veina in forum C++ Programming
    Replies: 5
    Last Post: 06-15-2011, 07:14 AM
  2. help with iomanip
    By markucd in forum C++ Programming
    Replies: 1
    Last Post: 04-28-2006, 03:44 AM
  3. iomanip
    By ZerOrDie in forum C++ Programming
    Replies: 7
    Last Post: 09-28-2002, 06:26 AM
  4. Question about <iomanip.h>
    By bigblack in forum C++ Programming
    Replies: 1
    Last Post: 02-27-2002, 05:18 AM

Tags for this Thread


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