are Strings standard now?

This is a discussion on are Strings standard now? within the C++ Programming forums, part of the General Programming Boards category; Was just wondering if strings were made part of the c++ standard. I like working with char arrays even though ...

There has been only one C++ standard (from 1998). It included a specification for a standard library. That standard library includes a string class (called string). So, the string class is part of the C++ standard, and is therefore portable to all standards-compliant compilers.

Technically speaking the string class isn't part of the language itself, it is implemented in terms of the C++ language, and can be implemented in many different ways by the library writers. However, it is still considered part of standard C++, so learning it is an excellent idea.

It is part of the standard library, which is part of the language standard. That means that any compiler that follows the C++ standard will provide the same guarantees that the standard gives. Basically you can use the string class and it will work on all modern compilers.

It is the same as standard C library stuff like rand(), strlen(), memcpy(), etc. Those aren't keywords that are part of the actual language, but they are part of the standard library so you can use them on any standards conforming compiler.