Why are so many string types in C++?

Viewed 1681

I like C, I have a C book called Full and Full C and 2 C++, I find these languages fantastic because of their incredible power and performance, but I have to end many of my projects because of these various types.

I say to have std::string, LPCSTR, System::String, TCHAR [], char s [] = "ss", char * s?

This causes tremendous headaches mainly in GUI applications, WinAPI has the problem of LPCSTR not being compatible with char or std::string, and now in CLR applications if it has System::String that gives a lot of headache to convert to std::String or char * s or even char s [].

Why don’t C/C++ have its string type unique like String in Java?

3 Answers
Related