3
Contributors
6
Replies
7
Views
10 Years
Discussion Span
Last Post by louise07
0

Welcome to Daniweb!

Unfortunately your post is quite vague. Do you want to print the contents of a linked list somewhere (screen, output file, printer, other) or do you want to store the contents of a file in a linked list and then print that somewhere?

0

Still too vague. Printing is system dependent, and sometimes hardware dependent. You can try opening a file to "LPT1", or "PRN", and pray that it works. Otherwise, tell us your OS and compiler so that we can give you more specific help.

0

Windows xp. and im using the old dos compiler. Its like this, im making a linked list program. about employee. in the menu there are choices.. like, Insert new value, serach.. view list, update. i wanna add the print output.

0

Try my first suggestion. It's vastly simpler than the Win32 option. Since you're using a dinosaur compiler, you might also have stdprn available. For example:

#include <stdio.h>

for ( it = head; it != NULL; it = it->next )
  fprintf ( stdprn, "%d\n", it->data );
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.