Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
ASCII in Turbo C++
Name: chad Date: November 13, 2001 at 19:14:58 Pacific
Comment:
What is the command to use the ASCII chaaracters in Borland Turbo C++? I know that in BASIC it is CHR$() and to change back it is ASC(). How about C++?
Name: jhk;l'k Date: November 14, 2001 at 11:24:55 Pacific
Reply:
just use the character's ASCII code; for example to print the character 'a': putchar(97); will do the trick. you can assign numbers to so-called char variables, which the C compiler doesn't mind if you dont assign a charcater constant to because it treats them simply as general-purpose bytes: unsigned char c = 254; char ch = 119; ch += 4;
0
Response Number 2
Name: chad muska Date: November 14, 2001 at 14:44:02 Pacific
Reply:
Excellent, thank you. What I am hoping to do is to figure out a way to save images in a special way where that each pixel is one character in the ASCII table.
Summary: http://en.wikipedia.org/wiki/Turbo_... The last version of Turbo C++ was released prior to Windows 9x, it was never meant to be run on anything but **-DOS. Windows XP has no Standalone MS-DOS subsyst...
Summary: I've written a graphical program in Turbo C++ 3.0, which calls the mouse into action using the interrupt 33H. However, the first time the mouse is moved, it leaves a small rectangle of the same colour...