Sunday, July 12, 2009

What is the code to print the extended ascii character set in c++?

I'm using borland turbo c++ if that helps

What is the code to print the extended ascii character set in c++?
I'd say just use a loop from 0 to 255, and print the integer converted to a character, like this:





int i;


char character;


for (i=0; i %26lt; 255; i++)


{


character = i;


cout %26lt;%26lt; character %26lt;%26lt; endl;


}
Reply:well i dont really know, but i wud think u wudnt have to do anything, either that or make the chars unsigned


No comments:

Post a Comment