cout question

This is a discussion on cout question within the C++ Programming forums, part of the General Programming Boards category; Hello, the writeln instruction in Paskal language using ":number" results in formated output. Code: a:=13; writeln(a:5); {results in ----> _ ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    177

    cout question

    Hello,

    the writeln instruction in Paskal language using ":number" results in formated output.
    Code:
    a:=13;
    writeln(a:5);   {results in  ---->   _ _ _ 13      (_ is blank)}
    is there anything similar to this insruction in C++?

    thank you
    Arian

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    Yes. Search on <iomanip> settings.
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    177
    thank you

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 01:14 PM
  2. Question about cout an stack object?
    By joenching in forum C++ Programming
    Replies: 8
    Last Post: 05-08-2005, 11:10 PM
  3. Question type program for beginners
    By Kirdra in forum C++ Programming
    Replies: 7
    Last Post: 09-15-2002, 06:10 AM
  4. cout question
    By The Gweech in forum C++ Programming
    Replies: 4
    Last Post: 07-09-2002, 05:11 PM
  5. cout question...
    By bishop_74 in forum C++ Programming
    Replies: 1
    Last Post: 12-06-2001, 11:22 AM

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