Sign in to follow this  

Printing ASCII char 0 in a console window

This topic is 4726 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

This topic is 4726 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this