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 |
Reading which Character Key was pressed
code to display a Countdown Timer (dynamic)
determine which Element received an Event
validation code / function to allow only Letters in a text box
how to pass data between pages using URLs
program that will accept any name and will be stored in an array
advance the focus to next consecutive fields when Enter Key is pressed
create a slide show
i am making a purchase sheet in html ,it contain names of product(by selecting checkboxes),quantity(textbox) and price(checbox), by using java script i am restricting the user to prevent them to enter the wrong data ,so i made the servlet were i am only able to prevent them to enter the page in empty field , so my doubt is how do you prevent them how to enter non numerical data in quantity field
how to Scroll a DIV content
function to combine two or more arrays
how to delay a function call ?