#pragma once
#include <string>
usingnamespace std; //this will fix the problem but including 'using' keyword in .h file is bad
//according to "them".
class str
{
public:
str(void);
string s(void);
};
It is bad, in a header. It forces the users of your class to accept the namespace qualifier. That's why you should fully qualify all spaces and scopes rather than performing a global using directive.