lolz
lolz
lolz
slm
code file load nhin ho pa rhi ---part list aor code bad man load kar donga----8 swetch es say kam karan gay---
mehboob malik
lolz
#include <stdio.h>
#include <dos.h>
#define LPT1 0x00400008 /* BIOS printer address entries */
#define LPT2 0x0040000a
#define LPT3 0x0040000c
#define LPT4 0x0040000e
int main(int argc, char *argv[])
{
unsigned int port,data;
unsigned int far *bios_printer_addr;
if (argc>3) exit(1);
switch(argc)
{
case 1:
exit(1);
case 2:
port=*(bios_printer_addr=LPT1);
if (port==NULL)
{
printf("LPT1 does not exist\n");
exit(1);
}
sscanf(argv[1],"%x",&data);
break;
case 3:
if (argv[1][0]=='/')
switch(argv[1][1])
{
case '1':
port=*(bios_printer_addr=LPT1);
if (port==NULL)
{
printf("LPT1 does not exist\n");
exit(1);
}
sscanf(argv[2],"%x",&data);
break;
case '2':
port=*(bios_printer_addr=LPT2);
if (port==NULL)
{
printf("LPT2 does not exist\n");
exit(1);
}
sscanf(argv[2],"%x",&data);
break;
case '3':
port=*(bios_printer_addr=LPT3);
if (port==NULL)
{
printf("LPT3 does not exist\n");
exit(1);
}
sscanf(argv[2],"%x",&data);
break;
case '4':
port=*(bios_printer_addr=LPT4);
if (port==NULL)
{
printf("LPT4 does not exist\n");
exit(1);
}
sscanf(argv[2],"%x",&data);
break;
default:
printf("Invalid printer port!\n");
exit(1);
}
else exit(1);
}
outportb(port, (char)data);
return 0;
}
#include <dos.h>
#define ESC 0x1b
int main(int argc, char *argv[])
{
unsigned int seconds;
if (argc<2) exit(1);
seconds = atoi(argv[1]);
while (seconds)
{
printf("\r%05d",seconds);
delay(1000);
seconds--;
if (kbhit())
{
if (getch()==ESC) exit(1);
}
}
printf("\r%05d",seconds);
return 0;
}
#include <time.h>
#include <string.h>
#include <conio.h>
#define ESC 0x1b
int main(int argc, char *argv[])
{
char timebuf[9];
char timeold[9];
if (argc<2) exit(1);
do {
_strtime(timebuf);
if (strcmp(timebuf, timeold))
{
printf("\r%s",timebuf);
strcpy(timeold,timebuf);
}
if (kbhit())
{
if (getch()==ESC) exit(1);
}
}
while (strncmp(argv[1], timebuf, 5));
return 0;
}
waitfor 11:00
@if errorlevel 1 goto end
relay 01
delay 5
@if errorlevel 1 goto end
relay 02
delay 5
@if errorlevel 1 goto end
relay 04
delay 5
@if errorlevel 1 goto end
relay 08
delay 5
@if errorlevel 1 goto end
relay 10
delay 5
@if errorlevel 1 goto end
relay 20
delay 5
@if errorlevel 1 goto end
relay 40
delay 5
@if errorlevel 1 goto end
relay 80
delay 5
:end
relay 00
C:/C++/BIN man copy karan aor C++ man chalain[RUN]
anyone need help can contact me
Bookmarks