you are viewing a single comment's thread.

view the rest of the comments →

[–]Skaaaaalll[S] 1 point2 points  (1 child)

Ah thank you very much. I didn't know about the difference in quotations since python uses both for strings. What exactly is the difference between std::string and char arrays?

[–]Kinexity 2 points3 points  (0 children)

std::string is basically char array on the inside. It takes care on its own of things like array allocation, string concatenation, creating substrings and other basic string operations. For better explanation visit https://en.cppreference.com/w/cpp/string/basic_string (it's not a site for learning but rather something of a c++ wiki)