| CODE |
saving { group name; room number; teacher name; month; Male Absent #; Male Half-Absent #; Female Absent #; Female Half-Absent #; } //[then] loading { group name; room number; teacher name; month; Male Absent #; Male Half-Absent #; Female Absent #; Female Half-Absent #; } //[then] Display: group name; room number; teacher name; month; Male Absent #; Male Half-Absent #; Female Absent #; Female Half-Absent #; |
| CODE |
| ifstream ifile; ofstream ofile; ofile.open("directory"); //now write the information like this ofile << stuff << " ";//need a space so the information doesn't get mashed up with //other data on the file a space or a new line ("\n") //then close it ofile.close(); //now open it agian ifile.open("directory"); //now loop through it ifile >> variable; cout << variable; |