You'll need to include the header <string> wherever you declare a std::string object (variable).
About namespaces (like std) see this thread:
return types
After reading this, I want you (to test yourself) to write me a simple function swapping two std::string objects. You must do this in your own namespace. Post it. Even in case of a failure. Then we'll take a look at it together.