Hi everybody
My question is the following one:
I did a small practice that i ve found in Internet, to ignite domestic appliances through of lpt1, the program that controls the value that sends to the port in c ++ and it is the following one:
#include<dos.h>
#include<stdio.h>
#include<conio.h>
int a; /
void main()
{
a=0;
outp(888,a);
clrscr();
printf("enter a decimal number.\n");
printf("The maxest number acept is:\n");
scanf("%d",&a);
outp(888,a);
printf(" data sended...!!!\n\n");
printf(" press any key to exit");
getch();
outp(888,0);
}
Now I am going to change the software to java but I do not have very clearly to do it.
Can you explain me?
thanks a lot