Thread: Left Align

  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,490
    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, 10: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, 03: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-06-2002, 11:28 PM
  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