Sign in to follow this  

printing a string

Recommended Posts

when i try to print a string using std::cout i get this error: error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' Here is the code:
void DayType::PrintDay()
	std::cout << this->_day << std::endl;

this->_day is a std::string type.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this