J
Johs
When I declare a string in C++ I type:
std::string mystring = "sdfsdf";
afterwards I can access string methods like:
mystring.
but why is there both :: and . operators and what are the difference?
std::string mystring = "sdfsdf";
afterwards I can access string methods like:
mystring.
but why is there both :: and . operators and what are the difference?