943,987 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 636
  • C++ RSS
Feb 5th, 2009
0

c++ @-quoting

Expand Post »
in C# if you add @ before your string literals the escape sequences are not processed, so :

you can use :
C++ Syntax (Toggle Plain Text)
  1. @"c:\Docs\Source\a.txt" // rather than "c:\\Docs\\Source\\a.txt"
is there any c++ equivalent of doing that?

Thanks
Similar Threads
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008
Feb 5th, 2009
-1

Re: c++ @-quoting

yeah i guess...
c++ Syntax (Toggle Plain Text)
  1. "c:/Docs/Source/a.txt"
Reputation Points: 47
Solved Threads: 69
Posting Whiz
cikara21 is offline Offline
340 posts
since Jul 2008
Feb 5th, 2009
3

Re: c++ @-quoting

is there any c++ equivalent of doing that?
Nope
Team Colleague
Reputation Points: 1135
Solved Threads: 172
Super Senior Demiposter
Rashakil Fol is offline Offline
2,479 posts
since Jun 2005
Feb 5th, 2009
-1

Re: c++ @-quoting

No, there isn't.
I wish there was.

But like cikara21 pointed out, you can use forward slashes for directory strings, if that's your only concern.
You should really always use forward slashes anyways as they are more cross-platform I believe (Windows can go either way, Linux/Unix usually require forward slashes).
Reputation Points: 33
Solved Threads: 1
Newbie Poster
dewyatt is offline Offline
9 posts
since Aug 2008
Feb 5th, 2009
1

Re: c++ @-quoting

No my question was about not processing escape characters, it was not about file paths. But thanks for the answers, it is also good to know what not to search for.
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008
Feb 5th, 2009
0

Re: c++ @-quoting

Click to Expand / Collapse  Quote originally posted by dewyatt ...
No, there isn't.
I wish there was.
yeah..really sorry for that..
Last edited by cikara21; Feb 5th, 2009 at 10:17 pm.
Reputation Points: 47
Solved Threads: 69
Posting Whiz
cikara21 is offline Offline
340 posts
since Jul 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Singly Linked List - help with error
Next Thread in C++ Forum Timeline: copy constructor





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC