Char Problems

I am not sure how to do this. It is for a part in my C++ class.

I have to create a char Variable called registered and initialize it to an empty space. I do not know how because i thought char could only be one letter ?
They probably mean a whitespace but specifically the "space" created by the space bar you can do this like this
char registered = ' ';


That is not the only whitespace though. There is also the horizontal tab( '\t' ) , vertical tab('\v' ) , new line( '\n' ) , feed( '\f ) , and carriage return( '\r' ).

I would assume the normal space ( ' ' ) is what they mean.


cplusplusDOTcom wrote:
For the "C" locale, white-space characters are any of:
' ' (0x20) space (SPC)
'\t' (0x09) horizontal tab (TAB)
'\n' (0x0a) newline (LF)
'\v' (0x0b) vertical tab (VT)
'\f' (0x0c) feed (FF)
'\r' (0x0d) carriage return (CR)
Topic archived. No new replies allowed.