View Full Version : ASCII Characters
GreenCherry
10-08-2002, 09:17 AM
What are the ASCII Carsacterrs for the arrow keys, does anyone have a link to a table with them on it?
GreenCherry
10-08-2002, 09:27 AM
I know this is cross posting and whatever, but this message board doesnt have a search thingy to find stuff. And Whenever I ask i dont get a staight answer.
look in your header files....o my bad that wouldn't be giving u the answer u;d have to actually look for it,....
hmm...
Sebastiani
10-08-2002, 12:45 PM
I'll let you figure out the rest...
#include <stdio.h>
#include <windows.h>
#include <limits.h>
int main (int argc, char **argv ) {
int i;
for(i = 0; i < INT_MAX; i++){
printf("%c = %i\n", i, i);
Sleep(500);
}
return 0;
}
Hammer
10-08-2002, 04:29 PM
Originally posted by GreenCherry
I know this is cross posting and whatever, but this message board doesnt have a search thingy to find stuff. And Whenever I ask i dont get a staight answer.
You mean like a search button... how about the one at the top of the page :confused:
Anyway, try this thread:
http://www.cprogramming.com/cboard/showthread.php?s=&threadid=25946
SinAmerica
10-13-2002, 01:23 AM
Had the same problem finding ASCII values myself. This is what i came up with.
#include <iostream.h>
#include <stdlib.h>
int main()
{
int checkup = 0;
int numb;
for(int x=0; x<256; x++)
{
switch(checkup)
{
case 20:
system("PAUSE");
break;
case 40:
system("PAUSE");
break;
case 60:
system("PAUSE");
break;
case 80:
system("PAUSE");
break;
case 100:
system("PAUSE");
break;
case 120:
system("PAUSE");
break;
case 140:
system("PAUSE");
break;
case 160:
system("PAUSE");
break;
case 180:
system("PAUSE");
break;
case 200:
system("PAUSE");
break;
case 220:
system("PAUSE");
break;
case 240:
system("PAUSE");
break;
default:
break;
}
cout<<x<<":"<<(char)x<<" "<<endl;
checkup = x;
}
return 0;
}
Fordy
10-13-2002, 01:51 AM
Here you go
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.