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
substrings
substrings
Mar 29, 2013 at 11:01am UTC
coder1
(85)
To check if a string is a sub string of a string , i use a for loop and check every character.
i was wondering if theres a function to check if a string is a substring of another one, any idea?
Mar 29, 2013 at 11:21am UTC
tath
(408)
check
http://www.cplusplus.com/reference/string/string/?kw=string
methods.
You could use string::find (
http://www.cplusplus.com/reference/string/string/find/
), or maybe there is already ready function for what you seek.
Last edited on
Mar 29, 2013 at 11:22am UTC
Topic archived. No new replies allowed.