// Project 2 for CS 1704 Fall 2004 // Programmer: Kenan Davis // OS: Windows XP Home // System: Pentium 4 2.53 GHz, 256 MB Memory // Compiler: Microsoft Visual Studio .Net 2003 // Last modified: February 3, 2004 // // Purpose: // This program implements a console, command line based multiplayer checkers game. // Moves are read from an input file and when finished an output file will contain // a visual diagram of one of the checker boards along with some other information //#include //#include //#include //#include //using namespace std; #include "StudentClass.h" #include "ItemClass.h" #include "ManageClass.h" int main() { string commandfile = "commands.data"; ifstream CommandFile; CommandFile.open(commandfile.c_str()); ManageClass* Manage = new ManageClass(); //cout<<"Students & Items Loaded"<>temp; if (temp == "quit") { CommandFile.close(); Manage->PrintCommand(temp," "); //Print command function Manage->CloseFiles(); break; } else if (temp == "print") { ss>>temp; if (temp == "students") { Manage->PrintCommand("print",temp); //prints command Manage->PrintStudents(); //print all students } else if (temp == "items") { Manage->PrintCommand("print", temp); //prints commands Manage->PrintItems(); //prints all items } else { Manage->PrintCommand("print",temp); //prints commands Manage->ManagePrint(temp); //prints certain email record information } } else if (temp == "delete") { ss>>temp; Manage->PrintCommand("delete",temp); //prints commands Manage->ManageDelete(temp); //Delets certain email information } else if (temp == "add") { ss>>temp; if (temp == "student") { Manage->PrintCommand("add",temp); //prints command Manage->GetStudentData(Name,Number,Email,Address,Address2,City,State,Zip,Other,CommandFile); //gets student info from command file Manage->AddStudent(Name,Number,Email,Address,Address2,City,State,Zip,Other); //adds student info } else if (temp == "item") { Manage->PrintCommand("add",temp); //prints command Manage->GetItemData(Name, Type, Author, Owner, Price, Status, CommandFile); //gets item data from command file if (Manage->StudentExist(Owner)) //calls function to test if email exists Manage->AddItem(Name, Type, Author, Owner, Price, Status); //adds item info } } } } /* On my honor: - I have not discussed the C++ language code in my program with anyone other than my instructor or the teaching assistants assigned to this course. - I have not used C++ language code obtained from another student, or any other unauthorized source, either modified or unmodified. - If any C++ language code or documentation used in my program was obtained from another source, such as a textbook or course notes, that has been clearly noted with a proper citation in the comments of my program. - I have not designed this program in such a way as to defeat or interfere with the normal operation of the Curator System. Kenan Davis */