You may find it easier to use a vector instead of a regular array, pass the string in as paramter and return the vector at the end of the function:[tt]
std::vector MyFunction(CString str)
{
std::vector<CString> myVector;
// split the string into 8 parts
// and stuff each part into vector
// using the push_pack() method.
return myVector;
}
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.