G
Guest
Writing my own algorithm to make a subarray in Visual C++ would be easy enough, but is there a useful function or method for doing this? I have strings stored as TCHAR[] and I want to get substrings of those, but the basic String.substr() function doesn't compile on that. I tried this
TCHAR string[size]
TCHAR substring[size]
//function that returns a value for strin
substring = string->Substring(3,3)
and I get this when I compile
error C2227: left of '->Substring' must point to class/struct/unio
Thanks in advance!
TCHAR string[size]
TCHAR substring[size]
//function that returns a value for strin
substring = string->Substring(3,3)
and I get this when I compile
error C2227: left of '->Substring' must point to class/struct/unio
Thanks in advance!