Just a general question. How should I get the position of an element stored in a 2D vector of strings?
By searching through each element until you find it.
How would I output the position of the element?
Hello, @see my previous comment in the "reversing a string" (1) topic e.g std::distance
(1) the OP meant reversing words according to space in latin-related langs, mostly english ; it would not work in many other latin-based languages.
Last edited on