Thread: help with some symbols

  1. #1
    Registered User
    Join Date
    Oct 2001

    Red face help with some symbols

    i would really like to help me, by explaining me the symbols above;

    \t \ \b \a \b \f \r \v \? \' \\ \" \0 \ooo \x0a

    please inform what these symbols are used for in c++ programming.
    thank you very much.

  2. #2
    Registered User
    Join Date
    Sep 2001
    \t is a horizontal tab
    \b is a Backspace
    \a is a Alert (bell)
    \f is a Formfeed
    \r is a Carriage return
    \v is a vertical tab
    \? is a literal quotation mark
    \' is a single quotation mark
    \\ is a backslash
    \0 is a null
    \ooo is an ASCII character in octal notation
    \x0a is a ASCII character in hex notation

    Think of these representations as special characters that can be put in between " " (two quotes). Some are used to prevent confusion (\" if you tried to use just the actual " it would end the string) and some just have no key on your keyboard to represent them.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux Putting my children to sleep with futex!?
    By Abs in forum Linux Programming
    Replies: 18
    Last Post: 02-12-2009, 06:43 PM
  2. Replies: 7
    Last Post: 02-02-2009, 07:27 AM
  3. Trouble with Windows/DirectX programming
    By bobbelPoP in forum Windows Programming
    Replies: 16
    Last Post: 07-08-2008, 03:27 AM
  4. Strange error?
    By MrLucky in forum C++ Programming
    Replies: 5
    Last Post: 02-04-2006, 03:01 PM
  5. symbols, no symbols, symbols ...
    By pavmarc in forum Linux Programming
    Replies: 0
    Last Post: 08-23-2005, 01:36 PM
Website Security Test