String Library Functions

Hey I was just trying out some string library functions and i was doing them on normal strings in the standard library(string str1;) and all of the string library functions where not working like str length. Been a really long day trying t find answers on google for other things and i am sick of not finding a definite answer so could someone please help me out.
Show non-working code.
Did you #include <string> ?
i was wondering if you these functions only work on null-terminated strings only?
or if they work on normal strings then why is it not working?
Last edited on
Topic archived. No new replies allowed.