#include #include using namespace std; class Student{ public: string name; int roll; string branch; public: Student(){ } Student(string n,int r,string b){ name = n; roll = r; branch = b; } friend ofstream & operator<<(ofstream &ofs, Student &s){ ofs<>(ifstream &ifs, Student &s){ ifs>>s.name; ifs>>s.roll; ifs>>s.branch; return ifs; } }; int main() { Student s1("Brock",30,"cse"); ofstream ofs("student.txt"); ofs<>s2; cout<<"Name "<