Not sure if this forum deals with the electronic side of programming? I basically want to make a money counting machine thats connected to a PC. I will be using a universal hopper to count any size coin.
My problem is, i don't know how to output to the printer port or USB. I have wrote the following simple code to try and show what i mean.
Any help is much appreciated as always. If i'm asking the wrong kind of question please let me know

Code:
#include<stdio.h>
int main()
{
int coins;
char answer='y';
while(answer=='y')
{
printf("Please input how many coins you want counting out.\n");
scanf("%d",&coins);
fflush(stdin);
while(coins>0)
{
printf("Output %d coins.\n",coins);/*This is where i need to output to the printer port*/
coins--;
}
printf("Do you want to count more coins?\n");
answer=getchar();
if(answer=='n')
break;
}
return(0);
}
