cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
What this function does?
What this function does?
Feb 23, 2018 at 3:10pm UTC
bobsakino
(4)
can someone explain these code
http://www.cplusplus.com/reference/string/string/find_last_of/
std::size_t found = str.find_last_of("/\\");
what does mean "/\\" literally?
I'm so confused. :(
Last edited on
Feb 23, 2018 at 3:11pm UTC
Feb 23, 2018 at 3:16pm UTC
Peter87
(11237)
\
is used to write special characters so in order to write a string that contains a regular
\
character you need to write two of them (
\\
). This means that
"/\\"
is a string that contains the two characters
/
and
\
.
http://en.cppreference.com/w/cpp/language/escape
Last edited on
Feb 23, 2018 at 3:18pm UTC
Feb 23, 2018 at 3:18pm UTC
bobsakino
(4)
Big thanks for you! :)
Feb 23, 2018 at 3:20pm UTC
bobsakino
(4)
also Your website is awesome man (dataapa)!
Last edited on
Feb 23, 2018 at 3:20pm UTC
Feb 23, 2018 at 3:21pm UTC
Peter87
(11237)
Thanks ;)
Topic archived. No new replies allowed.