What are the ASCII Carsacterrs for the arrow keys, does anyone have a link to a table with them on it?
This is a discussion on ASCII Characters within the Game Programming forums, part of the General Programming Boards category; What are the ASCII Carsacterrs for the arrow keys, does anyone have a link to a table with them on ...
What are the ASCII Carsacterrs for the arrow keys, does anyone have a link to a table with them on it?
I have a rabbit in my pants! Please be happy for me.
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.
I have a rabbit in my pants! Please be happy for me.
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...
I'll let you figure out the rest...
Code:#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; }
Code:int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000 <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000 )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 0;}
You mean like a search button... how about the one at the top of the pageOriginally 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.![]()
Anyway, try this thread:
http://www.cprogramming.com/cboard/s...threadid=25946
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Had the same problem finding ASCII values myself. This is what i came up with.
Code:#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; }
Here you go