Left Align

This is a discussion on Left Align within the C++ Programming forums, part of the General Programming Boards category; Trying to left align some data that I'm reading into an array. Currently everything is right aligned. Thanks...

  1. #1
    Unregistered
    Guest

    Left Align

    Trying to left align some data that I'm reading into an array. Currently everything is right aligned. Thanks

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    if you're using a vector array just read it in, then type
    Code:
    reverse(array.begin(),array.end());
    if you're using plain old arrays, either write the data in reverse order, or write a function to reverse it after the fact

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. left align, 12 places
    By manav in forum C++ Programming
    Replies: 3
    Last Post: 04-15-2008, 11:39 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Please help me
    By teedee46 in forum C++ Programming
    Replies: 9
    Last Post: 05-07-2002, 12:28 AM
  5. How to get text to align left when using width(X)
    By Darksbane in forum C++ Programming
    Replies: 4
    Last Post: 11-29-2001, 09:25 AM

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