View Single Post
Old 06-27-2005, 11:04 PM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
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.
__________________
Valmont is offline   Reply With Quote