Reading which Character Key was pressed
Answer / jagdish patel
#include<stdio.h>
#include<conio.h>
void main()
{
char character;
character=getch();
if(isalpha(character))
printf("alpha");
else if(isdigit(character))
printf("digit");
else
printf("pressed key is special key");
getch();
}
Is This Answer Correct ? | 0 Yes | 0 No |
Code for Adding Message and Confirmation Boxes Using JavaScript?
Code to Block submission of form by pressing Enter Key
code to positioning of window in certain dimensions
validation code / function to allow only Letters in a text box
How to encode and decode URL strings?
determine which Element received an Event
maximizing the main window
code to create a new window
how to transform XML Data into HTML
could you please tell me for what javac, javax,swing,awt.*; are using. what is the meaning and differences. and also there are 4 access modifiers in java. public, private, protected, default. what is the meaning of these 4 access modifiers and difference. public is the access modifier void means return data type disp() means function name what mean by static
code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc
How to test whether two strings are equal or not ?