Thread: Quotes in Quotes?

  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,212
    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, 04: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