Printing ASCII char 0 in a console window
As anyone who has been programming since the age of DOS is probably aware, ascii char 0 (nul) is actually a happy face. Does anyone know how to print it in a modern windows xp console program? I think all my programs would be better with more happy faces.
Well i dont know if the above will work or not but do remember there is a extended ascii keyboard map press alt+RANDOM_KEYPAD_NUMBERS
theres a ascii chart just google ascii chart from there im sure u'd get it
theres a ascii chart just google ascii chart from there im sure u'd get it
i thought ASCII 001 was a happy face (and 002 was a colored-in (inverted) happy face)... are you sure you aren't off by one?
Quote:Original post by PnP Bios
yeah. character zero is the null terminator, or /0.
For the common c-style string character zero is a null terminator, but for C++ std::strings character zero is just as valid as any others. On my current platform it prints to the console as a space.
Enigma
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement