Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

getkey() function

$
0
0

hi there,

i have been trying to build a puzzle game in c language. for this i need a function to input arrow keys.

here is my function which i got from on book.

include<dos.h>

sgetkey()
{ union REGS i,o;
while(!kbhit());
i.ah.h=0;
int86(22,&i,&o);
return(o.h.ah);
} but it keeps on showing

error:storage size of i is unknown. error:storage size of o is unknown.

I am doing in this codeblocks. So please share a suitable solution.


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>