Thread: directory seperation... back/forward slashes...

  1. #1
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001

    directory seperation... back/forward slashes...

    i use \\ [escape sequence] to get a forward slash in a hardcode string... but then i see conventions as '/' in someone else's code... and i've also seen that when DJGPP reports a missing include header file... can you guys shed some light? thank you...
    hasafraggin shizigishin oppashigger...

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    \ - donotes windows file sys

    \\ - denotes windows file sys in code (escape char)

    / - denotes url or *nix file sys

    Well in my experince anyway

  3. #3
    Registered User jasrajva's Avatar
    Join Date
    Oct 2001
    have you tried using / as directory seperator
    in stead of \\
    it works in my old turbo c++ IDE havent tried it yet on vc++
    and its sure to work with djgpp as it is a gnu derivative and gnu is *nix based

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Couple errors please help :-D
    By JJJIrish05 in forum C Programming
    Replies: 9
    Last Post: 03-06-2008, 02:54 AM
  3. Finding files in a directory
    By smarta_982002 in forum C Programming
    Replies: 1
    Last Post: 01-25-2008, 10:10 AM
  4. Replies: 6
    Last Post: 07-30-2003, 03:08 AM
  5. Directory reading trouble
    By samGwilliam in forum Linux Programming
    Replies: 0
    Last Post: 03-10-2002, 09:43 AM