Results 1 to 9 of 9

Thread: C++ Question

  1. #1
    SoonerFans.com Elite Member
    Location
    Norman, OK
    Posts
    23,620
    vCash
    500

    C++ Question

    How do I turn an escape sequence in a string (i.e. "\t") into a single character (i.e. '\t')? I guess I need to use a lookup table to equate '\' + 't' with '\t'? Ugh.
    I'm not happy until you're not happy.

  2. #2
    party pooper
    Posts
    13,025
    vCash
    500

    Re: C++ Question

    I'm not even sure what you are asking...

    I hate everything to do with strings in C/C++

  3. #3
    SoonerFans.com Elite Member
    Location
    Norman, OK
    Posts
    23,620
    vCash
    500

    Re: C++ Question

    Quote Originally Posted by Ike View Post
    I'm not even sure what you are asking...
    THEN YOU PROBABLY CAN'T HELP ME!
    I'm not happy until you're not happy.

  4. #4
    Stayatworkdad yermom's Avatar
    Location
    Nomran
    Posts
    48,866
    vCash
    500

    Re: C++ Question

    i almost know what you are asking

  5. #5

    Re: C++ Question

    wouldnt a c++ be about the same as a b-? Maybe that will help ya.
    Quote Originally Posted by OU4LIFE View Post

    I'm almost positive i'm not gay, and I'm 100% not a poke fan.

  6. #6

  7. #7
    SoonerFans.com Elite Member
    Location
    Norman, OK
    Posts
    23,620
    vCash
    500

    Re: C++ Question

    Quote Originally Posted by yermom View Post
    i almost know what you are asking
    How I turn a string like "\\t" into the single character '\t'?
    I'm not happy until you're not happy.

  8. #8
    SoonerFans.com Elite Member SoonerInKCMO's Avatar
    Location
    Back in tha OKC.
    Posts
    7,002
    vCash
    500

    Re: C++ Question

    I'd answer your question, but your employer decided against hiring me.
    We have always known that heedless self-interest was bad morals; we know now that it is bad economics. FDR.

  9. #9
    SoonerFans.com Elite Member SoonerInKCMO's Avatar
    Location
    Back in tha OKC.
    Posts
    7,002
    vCash
    500

    Re: C++ Question

    Step 1. Program in a language that doesn't consider strings and characters as separate data types.
    We have always known that heedless self-interest was bad morals; we know now that it is bad economics. FDR.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •