I'm in the process of writing a program for my father's pizza restraunt to handle order taking and cash handling. I would like the program to be able to print the food order to a printer we have set up in back by the kitchen.
After doing a search I can't seem to come up with a concrete answer as to how to do this.
I tried the following code on my own computer
This code does nothing, no printout to the screen (which I didn't expect). All I get in my consol window is a "Press any key to continue."
FILE* fout = fopen("USB0","w");
fprintf(fout,"Poor man's printout\f");
USB0 is the port that my current printer is on. Is their some information regarding this matter that I can read. I'm not sure of the type of printer or even the port that we're going to use yet. I just want some solid information regarding printing to a printer.
Thanks for the help.