this is the code
friend ostream& operator <<(ostream& output, const User& u)
{
output << endl << "User name :" << u.name << endl << "User id :" << u.id << endl << "User age :" << u.age << endl << "User email :" << u.email << endl << "User password :" << u.password << endl;
}
friend istream& operator >>(istream& input, User& u)
{
input >> u.name >> u.age >> u.email >> u.password;
}
and this is the error visual studio gives me
77.cpp(94): error C4716: 'operator>>': must return a value 77.cpp(90): error C4716: 'operator<<': must return a value