quotation marks

This is a discussion on quotation marks within the C++ Programming forums, part of the General Programming Boards category; i was just wandering how you should cout quotation marks("). i mean if you say Code: cout<<"hi, harry "bill" Mctobison"; ...

  1. #1
    wierd guy bart's Avatar
    Join Date
    Aug 2001
    Posts
    87

    quotation marks

    i was just wandering how you should cout quotation marks("). i mean if you say
    Code:
    cout<<"hi, harry "bill" Mctobison";
    the compiler would get confused.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    155
    put a backslash in front of a quotation mark if you want it to be seen on the screen.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Searching a text file for double quotation marks "
    By willie in forum C Programming
    Replies: 4
    Last Post: 11-23-2008, 01:00 PM
  2. Replies: 12
    Last Post: 05-05-2008, 10:43 AM
  3. Quotations marks and strstr
    By Tommo in forum C Programming
    Replies: 12
    Last Post: 10-05-2007, 01:33 PM
  4. quotation marks
    By AmazingRando in forum C Programming
    Replies: 3
    Last Post: 02-02-2005, 03:12 PM
  5. Drawing a triangle with hatch marks?
    By Bajanine in forum Windows Programming
    Replies: 4
    Last Post: 05-19-2003, 05:42 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21