| | |
c++ @-quoting
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jan 2008
Posts: 2,052
Reputation:
Solved Threads: 118
in C# if you add @ before your string literals the escape sequences are not processed, so :
you can use :
is there any c++ equivalent of doing that?
Thanks
you can use :
C++ Syntax (Toggle Plain Text)
@"c:\Docs\Source\a.txt" // rather than "c:\\Docs\\Source\\a.txt"
Thanks
Due to lack of freedom of speech, i no longer post on this website.
•
•
Join Date: Aug 2008
Posts: 9
Reputation:
Solved Threads: 1
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).
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).
![]() |
Similar Threads
- Interests Anyone? (Geeks' Lounge)
- Http:// takes me to Page Error (Web Browsers)
- yay i have decided (Computer Science)
- cscgal I think we need.. (DaniWeb Community Feedback)
- Book Reviews (Geeks' Lounge)
Other Threads in the C++ Forum
- Previous Thread: Singly Linked List - help with error
- Next Thread: copy constructor
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data database delete desktop developer directshow dll download dynamic encryption error file forms fstream function functions game generator getline givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number output parameter pointer problem program programming project proxy python random read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






