Get last word of the string – codereview.stackexchange.com

We have to print the last word of the given string. How to improve and optimise this code? #include <iostream> std::string get_last_word(const std::string& str) { if (str.length() == ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Get last word of the string – codereview.stackexchange.com"