Quotes in Quotes?

This is a discussion on Quotes in Quotes? within the C Programming forums, part of the General Programming Boards category; sorry to ask something like this but is there a escape character for a quote. i mean how could i ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    913

    Quotes in Quotes?

    sorry to ask something like this but

    is there a escape character for a quote. i mean how could i do something like

    char test[] = "heres a string with a quote " <-quote";

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    Code:
    char sp[] = "And then she said: \"Hello, world\".  Funny that.";

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Niche Question: real time stock quotes
    By keira in forum C Programming
    Replies: 0
    Last Post: 03-08-2008, 11:06 AM
  2. Stock Quotes
    By jmd15 in forum Networking/Device Communication
    Replies: 4
    Last Post: 08-31-2006, 05:35 PM
  3. Stripping quotes from a string
    By -W0kk3L- in forum C Programming
    Replies: 3
    Last Post: 03-15-2006, 01:03 PM
  4. The great struggle for random quotes!
    By Jeremy G in forum Game Programming
    Replies: 2
    Last Post: 01-26-2003, 01:28 PM
  5. Thought-provoking quotes
    By tim545666 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-29-2002, 12:13 AM

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