What this function does?

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
\ 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
Big thanks for you! :)
also Your website is awesome man (dataapa)!

Last edited on
Thanks ;)
Topic archived. No new replies allowed.