Part of A string
In VB there is a Statment like this:
Left("String",2) it will return "ng"
is there anything like this in C++?
# 2 Re: Part of A string
RightStr is not part of standard C++. Also, it isn't clear what string means in your code: a char array or a string object? Anyway, in the fomer case you simply use strstr() or count characters from offset 0. In the case of a string object you use specialized algorithms or iterators.
Danny at 2007-11-11 21:02:32 >
