Results 1 to 4 of 4

Thread: C Langauge expert click here please

  1. #1
    iqbal4vu is offline Senior Member+
    Last Online
    5th December 2014 @ 12:30 PM
    Join Date
    06 Aug 2010
    Age
    36
    Gender
    Male
    Posts
    55
    Threads
    28
    Credits
    0
    Thanked: 1

    Default C Langauge expert click here please

    #include<stdio.h>
    #include<conio.h>
    #include<stdlib.h>
    #include<dos.h>
    getkey();
    void main()
    {
    clrscr();
    int x; /* to save the value of scan code returned by getkey()*/
    x=getkey();
    printf("%d",&x);
    getch();
    }

    getkey()
    {
    union REGS i,o;
    while(!kbhit())
    ;
    i.h.ah=0;
    int86(22,&i,&o);
    return(o.h.ah);
    }

    arrow keys k scan code return karna k liya ya function Dev C++ ma comple karta hoo to error show karta hain. please help me. what is wrong?

  2. #2
    bais is offline Senior Member
    Last Online
    31st July 2015 @ 02:07 PM
    Join Date
    23 Aug 2008
    Location
    Izlooo
    Gender
    Male
    Posts
    3,519
    Threads
    96
    Thanked
    263

    Default

    Quote iqbal4vu said: View Post
    #include<stdio.h>
    #include<conio.h>
    #include<stdlib.h>
    #include<windows.h>
    #include<dos.h>

    void getkey();
    int main()
    {
    int x; /* to save the value of scan code returned by getkey()*/
    x=getkey();
    printf("%d",&x);
    getch();
    return 0;
    }

    void getkey()
    {
    union REGS i,o;
    while(!kbhit())
    ;
    i.h.ah=0;
    int86(22,&i,&o);
    return(o.h.ah);
    }

    arrow keys k scan code return karna k liya ya function Dev C++ ma comple karta hoo to error show karta hain. please help me. what is wrong?


    ab run karo...ye jo red ma aur italic ma han ye galtiyan ha...clrscr ki zaroorat nahi phare gae Dev C++ ma q k screen auto clean hoti hai har dafa jb code compile hota hai...agr use karna ha tou dev c++ ma system("cls"); ye use hota hia.

  3. #3
    sayhellotoit's Avatar
    sayhellotoit is offline Senior Member
    Last Online
    23rd September 2017 @ 07:51 PM
    Join Date
    01 May 2009
    Posts
    1,003
    Threads
    5
    Credits
    53
    Thanked
    127

    Default

    DevC++ mein nahi chalay ga. BorlandC ya TurboC mein chaly ga.
    DevC++ ki dos.h file mein union REGS aur int86 nahi hain.

    Ab aisa bhi nahi hay keh DevC++ mein aap scan code get hi nahi ker saktay. Ker saktay hain per kisi aur tareeqay say.
    Last edited by sayhellotoit; 11th August 2012 at 11:07 AM.

  4. #4
    bais is offline Senior Member
    Last Online
    31st July 2015 @ 02:07 PM
    Join Date
    23 Aug 2008
    Location
    Izlooo
    Gender
    Male
    Posts
    3,519
    Threads
    96
    Credits
    0
    Thanked
    263

    Default

    Quote sayhellotoit said: View Post
    DevC++ mein nahi chalay ga. BorlandC ya TurboC mein chaly ga.
    DevC++ ki bios.h file mein union REGS aur int86 nahi hain.

    Ab aisa bhi nahi hay keh DevC++ mein aap scan code get hi nahi ker saktay. Ker saktay hain per kisi aur tareeqay say.
    run hota hai Dev c++ ma...q nahi hota?...

Similar Threads

  1. Help Ms word
    By Rizwan54 in forum Ask an Expert
    Replies: 3
    Last Post: 25th February 2012, 11:58 AM
  2. book needed
    By handsomenaqvi in forum Ask an Expert
    Replies: 3
    Last Post: 29th August 2011, 05:31 AM
  3. 70 Hidden Tips & Secrets For photoshop
    By sulemanasif in forum English IT Zone
    Replies: 13
    Last Post: 5th August 2009, 08:57 AM
  4. Unable to connect IP driver, Error Code 2
    By Revolution in forum Ask an Expert
    Replies: 15
    Last Post: 17th July 2009, 05:05 PM
  5. Admistrattion rights
    By cute khan in forum Ask an Expert
    Replies: 3
    Last Post: 19th March 2009, 10:49 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
  •