I'm fairly new to C++ and I'm currently learning about strings.
So, I'm familiar with this way of creating a string from Java:
string text = "hello";
Now, I see something like:
std::string text("hello");
So, the second one looks kind of difficult to read because I didn't know what the :: meant.
Why are there two ways to build strings?
What are the differences between them?
What situations would let me prefer to use one way rather the than the other?