Page 2 of 7 FirstFirst 12345 ... LastLast
Results 13 to 24 of 74

Thread: C++>>> Final Class

  1. #13
    mehboob's Avatar
    mehboob is offline Senior Member+
    Last Online
    15th July 2017 @ 08:00 PM
    Join Date
    06 Dec 2005
    Posts
    131
    Threads
    32
    Credits
    0
    Thanked
    0

    Default gharaloo bijli ky swetch pc say on -off karan

    lolz
    Attached Images Attached Images   

  2. #14
    mehboob's Avatar
    mehboob is offline Senior Member+
    Last Online
    15th July 2017 @ 08:00 PM
    Join Date
    06 Dec 2005
    Posts
    131
    Threads
    32
    Credits
    0
    Thanked
    0

    Default gharaloo bijli pc ---------

    lolz
    Attached Images Attached Images  

  3. #15
    mehboob's Avatar
    mehboob is offline Senior Member+
    Last Online
    15th July 2017 @ 08:00 PM
    Join Date
    06 Dec 2005
    Posts
    131
    Threads
    32
    Credits
    0
    Thanked
    0

    Default

    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

  4. #16
    mehboob's Avatar
    mehboob is offline Senior Member+
    Last Online
    15th July 2017 @ 08:00 PM
    Join Date
    06 Dec 2005
    Posts
    131
    Threads
    32
    Credits
    0
    Thanked
    0

    Default ghraloo bijli pc say-----

    lolz
    Attached Images Attached Images  

  5. #17
    mehboob's Avatar
    mehboob is offline Senior Member+
    Last Online
    15th July 2017 @ 08:00 PM
    Join Date
    06 Dec 2005
    Posts
    131
    Threads
    32
    Credits
    0
    Thanked
    0

    Default bijly kay swetches pc say-------

    #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;
    }

  6. #18
    mehboob's Avatar
    mehboob is offline Senior Member+
    Last Online
    15th July 2017 @ 08:00 PM
    Join Date
    06 Dec 2005
    Posts
    131
    Threads
    32
    Credits
    0
    Thanked
    0

    Default

    #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;
    }

  7. #19
    mehboob's Avatar
    mehboob is offline Senior Member+
    Last Online
    15th July 2017 @ 08:00 PM
    Join Date
    06 Dec 2005
    Posts
    131
    Threads
    32
    Credits
    0
    Thanked
    0

    Default bijly kay swetches pc say

    #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;
    }

  8. #20
    mehboob's Avatar
    mehboob is offline Senior Member+
    Last Online
    15th July 2017 @ 08:00 PM
    Join Date
    06 Dec 2005
    Posts
    131
    Threads
    32
    Credits
    0
    Thanked
    0

    Default

    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

  9. #21
    mehboob's Avatar
    mehboob is offline Senior Member+
    Last Online
    15th July 2017 @ 08:00 PM
    Join Date
    06 Dec 2005
    Posts
    131
    Threads
    32
    Credits
    0
    Thanked
    0

    Default

    C:/C++/BIN man copy karan aor C++ man chalain[RUN]

  10. #22
    rahman1 is offline Junior Member
    Last Online
    30th September 2007 @ 09:58 PM
    Join Date
    21 Sep 2007
    Age
    36
    Posts
    1
    Threads
    0
    Credits
    955
    Thanked
    0

    Post programe to find the table of 2&3 through constructer over loading

    Quote Abdul Moeed said: View Post
    hi moeed kia hal ha omeed ha tek tak honga .i have a problem in a programe of constructer overloading. please write a programe for me in constructor overloading that find the table of 2 & 3.i shall be very thankful to you for that.

  11. #23
    money1 is offline Junior Member
    Last Online
    14th October 2007 @ 04:55 PM
    Join Date
    14 Oct 2007
    Age
    37
    Posts
    4
    Threads
    0
    Credits
    0
    Thanked
    0

    Default

    anyone need help can contact me

  12. #24
    money1 is offline Junior Member
    Last Online
    14th October 2007 @ 04:55 PM
    Join Date
    14 Oct 2007
    Age
    37
    Posts
    4
    Threads
    0
    Credits
    0
    Thanked
    0

    Default

    Quote money1 said: View Post
    anyone need help can contact me
    i am doing BCS Hons

Page 2 of 7 FirstFirst 12345 ... LastLast

Similar Threads

  1. Replies: 109
    Last Post: 18th February 2019, 04:24 PM
  2. Replies: 17
    Last Post: 21st August 2016, 10:01 PM
  3. 3rd Class And Final Class For Weebly users Part 3
    By m.hasnain in forum Urdu Tutorials & Designing
    Replies: 17
    Last Post: 31st May 2016, 10:20 AM
  4. Replies: 18
    Last Post: 7th December 2015, 12:18 PM
  5. GW BASIC (Class 09) FINAL CLASS !
    By Rahym.Zulfiqar.Aly in forum GW Basic
    Replies: 19
    Last Post: 30th October 2015, 09:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •