Ascii character table and game programming. With C source.
Submitted By:
caglar
Rating:





(
Rate It)
// ASCII CHARACTER TABLE FOROM CAGLAR ULKUDERNER
// This is just regular table for all ascii codes.
#include <conio.h>
void main(){
int i,k=-9;
clrscr();
textcolor(WHITE);
gotoxy(17,2);
cprintf("Regular ASCII Chart (character codes 0 - 127)");
textcolor(7); // normal color
window(1,5,80,25); //for chart 1
for(i=0;i<=127;i++)
{
if (i%16==0) k+=10;
gotoxy(k,i%16+1);
cprintf("%03d %c",i,i);
}
window(1,1,80,25); //turn back to use whole screan
gotoxy(23,24);
textcolor(WHITE);
cprintf("Press any key to see EXTENDED Chart...");
getch();
clrscr();
gotoxy(17,2);
cprintf("Extended ASCII Chart (character codes 128 - 255)");
textcolor(7); //normal color
window(1,5,80,25); //for chart2
k=-9;
for(i=0;i<=127;i++)
{
if (i%16==0) k+=10;
gotoxy(k,i%16+1);
cprintf("%03d %c",i+128,i+128);
}
textcolor(7); // turn back to normal color
}