Thread: I can't figure out why a literal string is producing this compiler error

  1. #1
    Programming Ninja In-T...
    Join Date
    May 2009
    Posts
    827

    I can't figure out why a literal string is producing this compiler error

    C++ code - 322 lines - codepad

    For some reason, the compiler is stopping at the last line of the literal string that looks like this:

    Code:
    "</SCRIPT>";
    Why would it be seeing the '/' character in the string as the binary division operator '/'?
    I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Did you look for the one / in black in the middle of all that brown string-ness? It was here:
    aDate = cDate.split("/")\n"

  3. #3
    Programming Ninja In-T...
    Join Date
    May 2009
    Posts
    827
    Quote Originally Posted by tabstop View Post
    Did you look for the one / in black in the middle of all that brown string-ness? It was here:
    aDate = cDate.split("/")\n"
    Oops. I missed that.
    Thanks. It compiled now.

    http://codepad.org/sKPLHVuu
    Last edited by Programmer_P; 01-17-2011 at 05:29 PM.
    I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to monitor process creation?
    By markiz in forum Windows Programming
    Replies: 31
    Last Post: 03-17-2008, 02:39 PM
  2. Inheritance Hierarchy for a Package class
    By twickre in forum C++ Programming
    Replies: 7
    Last Post: 12-08-2007, 04:13 PM
  3. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  4. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM