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
Getting certian place from String
Getting certian place from String
Dec 5, 2008 at 1:59pm UTC
hpsharon
(7)
Hello,
Lets say I have a string str1 = "abc";
I want another string that will get the second\third char from str1, "b" or "c".
Is there any function that can do that?
Thanks.
Dec 5, 2008 at 2:01pm UTC
jpmcfly
(64)
substring()
Dec 5, 2008 at 6:16pm UTC
seymore15074
(449)
Yep, substr().
Dec 5, 2008 at 7:50pm UTC
helios
(17607)
str::string::at() or str::string::operator[].
Topic archived. No new replies allowed.