Copying a Part of a String Into Another String

S

sakitah

Hello Everyone,

Here's my problem (im using Visual C++ 6.0):

I have a string that I want to copy a part of into another string;
so, say we have:

string string1, string2, string3, string4;

string1 = "This&is&life";

How can I make string2 = "life"
The idea is to look for the final '&' in string1 and place what's after
it into string2.
Then I want to have string3 to be what is in between both '&'s of
string1.
And finally string4 to equal 'this' of string1.

so in the end, we have:
string2 = life
string3 = is
string4 = this

thanx
Peace
Sakitah
 
G

Guest

You are in a Microsoft Access newsgroup, not Visual C++. I suggest you post
in the correct group if you want an answer for that language.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top