Sort a vector of strings

Sep 15, 2019 at 7:11pm
Hi I am hoping someone might be able to help with with a quick question. I am working on a problem on paper as I am not near a computer, so I can not test what I am about to ask.

If I get input from a user as strings, and each string I pass it to a vector. Can I call sort() on the vector to put the strings into alphabetical order?

----------------
Hello everyone, my name is Vanco, nice to meet you.
https://ruthamcau.vn
Last edited on Sep 20, 2019 at 11:29am
Sep 15, 2019 at 7:35pm
Yes.
Topic archived. No new replies allowed.