C++/about writing and reading to disk
suppose i have a class Person. that prints a person's name and the number of brothers that person has got. eg
how do i save and also load this to a disk in cpp?
instead of using std::cin for reading and std::cout for writing formatted output, use a std::ifstream for input and a std::ofstream for output.
here are a couple of tutorials: