String libraries

I'm having problems using libraries for string commands. Maybe some libraries are needed but i do not know


Last edited on
Which part is giving you trouble specifically?
If you are looking to use a feature, you can look up the documentation for it. For standard strings this is for example available at: http://www.cplusplus.com/reference/string/string/

If you look at that page you see in the top right (below the advertisement): <string>
This indicates that you have to include <string> in order to use standard strings.

Now this may make it seem very trivial, but that is coincidence. If you for example want to use modulus, you would end up at: http://www.cplusplus.com/reference/functional/modulus/
and you would find that in this case you should include <functional>.

Hope that helps you a bit.
Topic archived. No new replies allowed.