این برنامه برای تست صفحه کلید با زبان C نوشته شده است.
برای مشاهده سورس برنامه به ادامه مطلب مراجعه فرمایید.
#include<conio.h>
#include<stdio.h>
void main()
{
char r;
int rowcount=0;
textbackground(1);
clrscr();
printf("\n\tPress 'q' to Exit...\n\n");
do
{
r=getch();
rowcount++;
printf("\tinsert Key= %c Ascii Code=%d\n\n",r,r);
if(rowcount==20)
{
printf("Please Press 'ENTER' to Clear Screen...");
getch();
clrscr();
rowcount=0;
printf("\n\tPress 'q' to Exit...\n\n");
}
}
while(r!=113);
}