Copying Part of a String Into Another String

  • Thread starter Thread starter sakitah
  • Start date Start date
S

sakitah

Hello Everyone,

Here's the problem (I'm using Visual c++ 6.0):

I have a string:
string1 = "This&is&life";

and i want to use the '&' as a seperator to help me parse this string
into 3 strings so that:

string2 = 'This'
string3 = 'is'
string4 = 'life'

thanx
Peace
Sakitah
 
sakitah said:
Hello Everyone,

Here's the problem (I'm using Visual c++ 6.0):

I have a string:
string1 = "This&is&life";

and i want to use the '&' as a seperator to help me parse this string
into 3 strings so that:

string2 = 'This'
string3 = 'is'
string4 = 'life'

thanx
Peace
Sakitah

Since you're using VC++, you'd do better to ask you question in one of
the newsgroups that are devoted to that product. This one, like all
those that have ".Access" in their names, is devoted to Microsoft
Access, the database program. The programming language of Access is
VBA. In VBA, you'd use the Split function to do what you describe, but
I don't recall offhand how you do that in C++, as I haven't used that in
a while.
 
Back
Top