I have a vector of strings and now I want to print a single index of that vector if the size of that index equals 4, for example.
std::vector<string> str = {"Time", "Hello", "User"};
I know how to iterate through the vector and print out the indices but I do not know how to get the size of, for example, the first index ("Time") which I then want to print to the console.
Just need a few hints here :)
Thank you.