Left, Right of char arrays
In VB (yes, I'm a Visual Basic programmer switching to C++), there are a few functions I use which I cannot seem to find in C++ libraries. They are: Mid(), Left() and Right().
Left will extract text from the left part of a string, Right will take it off of the right. For example, Left("Hello", 2) will return "He". Right("Hello", 2) will return "lo". Mid() will take text from the middle...Mid("Hello World", 4, 3) will return the text starting at character four, and ending three past it. ("o W").
Believe me, I've looked, and tried writing my own, but I can't find functions like these for C++.....Any help?