answersLogoWhite

0

Give an code for getch

User Avatar

Anonymous

∙ 17y ago
Updated: 8/17/2019

#include <conio.h>

#include <stdio.h>

int mygetch (void)

{

int x;

x= getch ();

if (x==0) x= 1000+getch();

return x;

}

int main (void)

{

int key;

key = mygetch ();

if (key==1059) printf ("F1\n");

else printf ("%d\n", key);

return 0;

}

User Avatar

Wiki User

∙ 17y ago

What else can I help you with?

Related Questions

Purpose of getch?

The purpose of getch() is to input a single character from the input stream.


How do you use getch function in c language?

getch is used for console applications and it's very useful because in a way how windows work when a console application has finished it's part windows closes it automatically with the code 0 meaning that program did not have any problems while was running. To prevent automatic shutdown for console applications getch can be used. So, when your program has finished all operations it will wait for an input (basically you will have to press any key to finish the application) from the user.


Is it safe to give out your friend code?

yes !! its safe to give out your friend code!!!


Can you give me a real be-brat code i will give you my b girl code?

there is no be bratz code you use the usb key to get in be bratz!


What is the radio code for a 2000 Chevrolet Malibu?

You will have to call the dealership and give them your VIN and they will give you the code.


Give you a code for webkinz code shop?

354hfgjuhnbhhyt68


Can you please give the key code for a 2004 suzuki Verona?

You need to call the dealer with the radio srl# and they can give you the code


Can anyone give you a webkinz code?

not unless the code has been uused


Can you give me a wedkin code?

mayihaveaacod


Can someone give you a winged horse code in Bella sara?

no Yes. The code is 4JZMKDXFKZ. This is Graia's code.


A have a build a bear but not a code can somebody help you or give you a code?

Well, if you got a birth certificate with your bear then the code would be at the bottom. No one can give you a code if they already used it. It won't work. Add me on Build-a-Bearville, BriannePaws11!


How do you vertify MySpace?

they send a message to your email and you press on the code and enter the code they give you