|
-
Mar 31st, 2003, 01:00 PM
#1
Thread Starter
Junior Member
what am i doing wrong?
i wrote this in C
---------------------------------------
#include <stdio.h>
void printtoscreen();
void printtoprinter();
void main()
{
printtoscreen();
printtoprinter();
}
void printtoscreen();
{
fprintf(stdout,"This goes to the screen");
}
void printtoprinter();
{
FILE *stream;
stream = fopen("LPT1","w");
fprintf(stream,"This goes to the printer");
}
--------------------------
--------------------------
i get this error
program.cpp(17,2): declaration terminated incorrectly
program.cpp(22,2): declaration terminated incorrectly
--------------------------
what did i do wrong to those 2 declarations???
All Help Very Much Appreciated 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|