cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
2 strings, the second one has to be a su
2 strings, the second one has to be a substring of the first
Dec 12, 2015 at 2:50pm UTC
sunny50
(2)
if (str == str2)
else if (str != str2)
string str2 = str.substr ();
http://www.cplusplus.com/forum/general/
Last edited on
Dec 15, 2015 at 9:07pm UTC
Dec 12, 2015 at 3:49pm UTC
Thomas1965
(4571)
To find a substring you need to use the find function of the string.
http://www.cplusplus.com/reference/string/string/find/
Topic archived. No new replies allowed.