trouble printing linked list

This is a discussion on trouble printing linked list within the C Programming forums, part of the General Programming Boards category; please delete this thread...

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    16

    trouble printing linked list

    please delete this thread
    Last edited by deathrattle; 12-02-2008 at 06:17 PM. Reason: meant to preview before submitting. see other thread.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    If you want a space in the printed output, you must put it in the format. If you want a new line in the printed output, you must put it in the format. And how do you think a print format of "%d/%d/%d" will translate into "May 9, 1965" I have no idea.

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Don't forget the use the SAME type of alignment specifiers on the individuals lines you are printing. Also don't forget to print a newline after your dashed lines.

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Quote Originally Posted by tabstop View Post
    If you want a space in the printed output, you must put it in the format. If you want a new line in the printed output, you must put it in the format. And how do you think a print format of "%d/%d/%d" will translate into "May 9, 1965" I have no idea.
    I am very unobservant today.... And slow -_- Check out time.h for some functions for formatting dates.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. trouble printing linked list
    By deathrattle in forum C Programming
    Replies: 3
    Last Post: 12-02-2008, 06:29 PM
  2. Need help sorting a linked list. Beginner
    By scarlet00014 in forum C Programming
    Replies: 1
    Last Post: 09-27-2008, 07:16 PM
  3. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 11:10 AM
  4. Problem with linked list ADT and incomplete structure
    By prawntoast in forum C Programming
    Replies: 1
    Last Post: 04-30-2005, 02:29 AM
  5. doubly linked list error.
    By noob2c in forum C++ Programming
    Replies: 12
    Last Post: 09-01-2003, 11:49 PM

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