Find a character in a string, at a specified position. How do you do this? Any help will be appreciated....



 DEVELOP > c-Plus-Plus > Find a character in a string, at a specified position. How do you do this? Any help will be appreciated....

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
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
.


  Page 1 of 1

1

 


Related Articles
How can you connect c++ with any database.
Do you think this code will produce any undefined behavior?
You Can FIND any thing u want
Can't Find Answer Any Where (What would you do/try): fopen ("file on shared drive","w+") doesn't work on 2nd call using Windows LabView DDL
Any authoritative discussion on smart pointers?
any other idea of validating user input except regular expressions
Problem with gethostbyname - can't find any!
EARN EXTRA MONEY WITHOUT ANY INVESTMENT
Design to have an optional data member; is it any good?
Any function can convert the words form,such as "boys"->"boy","became->become".
Can anyone recommend any Audio Processing libraries?
Any C\C++\VC++ mailing List?
Any way to force compile failure?
Any good static analysis tools out there?
Any way to make this code more compact, and/or be able to change at runtime?
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER