C++ String: What types of strings are there?
Q: What types of strings are there?
A:
- 'char*' -> this is also called a C-style string, or an ANSI string.
<br> - 'wchar_t*' -> this is wide character string, i.e. an 'unsigned short*'
<br> - 'CString' -> this is a string wrapper class, which is part of the Microsoft Foundation Classes (MFC).
<br> - 'std::string' -> this is a Standard C++ Class wrapping a char string. It is part of the Standard Template Library, or STL.
<br> - 'std::wstring' -> this is a Standard C++ Class wrapping a wchar_t string. It is part of the Standard Template Library, or STL.
<br> - 'BSTR' -> this known as basic string or binary string, and is a pointer to a wide character string used by Automation data manipulation functions.
<br><br>