I am very new to C++

I believe this is totally different from C#, I was enjoying taking C# C++ is another animal entirely, but I want to learn it so can someone help me answer / understand this question. . .

why text isn't a simple variable datatype. What are the different ways text can be stored in C++?
What are the different ways text can be stored in C++


char and wchar - legacy C
std::string and std::wstring - instantiations of the basic_string class template

you can google these to start with
> why text isn't a simple variable datatype.

Text (a sequence of characters, a string) is a simple library-defined type.
https://cal-linux.com/tutorials/strings.html
Topic archived. No new replies allowed.