DEVELOP > c-Plus-Plus > Find a character in a string, at a specified position. How do you do this? Any help will be appreciated....
| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"Looks Like Trent" |
| Date: |
04 Dec 2004 10:00:34 PM |
| Object: |
Find a character in a string, at a specified position. How do you do this? Any help will be appreciated.... |
Find a character in a string, at a specified position. How do you do
this? Any help will be appreciated....
.
|
|
| User: "Siemel Naran" |
|
| Title: Re: Find a character in a string, at a specified position. How do you do this? Any help will be appreciated.... |
04 Dec 2004 10:08:06 PM |
|
|
"Looks Like Trent" <trent.bradley@gmail.com> wrote in message
Find a character in a string, at a specified position. How do you do
this? Any help will be appreciated....
Not sure what you're after. Look at std::string::find or std::find, or just
std::string::operator[](size_type).
.
|
|
|
|
| User: "Phlip" |
|
| Title: Re: Find a character in a string, at a specified position. How do you do this? Any help will be appreciated.... |
04 Dec 2004 10:02:35 PM |
|
|
Looks Like Trent wrote:
Find a character in a string, at a specified position. How do you do
this? Any help will be appreciated....
std::string q ("daddy");
assert('y' == q[4]);
Now what does your C++ tutorial say about strings?
--
Phlip
http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces
.
|
|
|
|

|
Related Articles |
|
|