Problem while reading objects from file in c++
问题 I am doing a small college project where I have to add, edit and search records in/from file using OOP concept. Adding into file is working fine but whenever I try to read from file it is printing in unreadable texts. Here is full code and output. main.cpp #include <iostream> #include <cstdlib> #include <fstream> #define MIN 20 #define MAX 100 #include "student.h" using namespace std; void add_student(); void edit_student(); void search_student(); void addToFile(const Student&); Student*