delete line 3 -- that file (iostream.h) is for C++ programs, not C programs.
Ancient Dragon
Retired & Loving It
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
the compiler gets to the first
line with "STDPRN" it stops compiling and says Undeclared reference
That's because there's nothing said about "stdprn" in any of the #include header files that you have included.
In any case I don't see "stdprn" in the code that you provided.
But regardless, "stdprn" it used to work for MS-DOS but not windows NT or above.
Aia
Nearly a Posting Maven
2,392 posts since Dec 2006
Reputation Points: 2,224
Solved Threads: 218
I do see that stdprn is not defined or thire is no init for it. got this program out of a book.
do you know how I would assign a printer that is on LPT1 to stdprn?
Dick
I have that book can you tell me what day or chapter you got the code from?.
I found this link may be it can help
Aia
Nearly a Posting Maven
2,392 posts since Dec 2006
Reputation Points: 2,224
Solved Threads: 218