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.