// Project 2 for CS 1704 Spring 2004 // // Programmer: John Puckett // OS: Windows XP Professional // System: Pentium 4 2.4Ghz, 1 GB Memory // Compiler: Visual C++ 7.1, Service Pack 4 // Last modified: February 24, 2004 // // Purpose // This program reads a list of student names and items from two input files // creates 2 arrays from the data, then uses another input file to run different // algorithms on the arrays // // The program then writes the given commands and the results to // an output file #include #include #include"multimedia.h" using namespace std; multimedia::multimedia() { item = " "; type = " "; author = " "; owner = "none"; price = "0.0"; avail = " "; } multimedia::~multimedia() {} //Modifier methods void multimedia::updateItem(string newitem) { item = newitem; } void multimedia::updateType(string newtype) { type = newtype; } void multimedia::updateAuthor(string newauthor) { author = newauthor; } void multimedia::updateOwner(string newowner) { owner = newowner; } void multimedia::updatePrice(string newprice) { price = newprice; } void multimedia::updateAvail(string newavail) { avail = newavail; } //Accessor methods string multimedia::getItem() const { return item; } string multimedia::getType() const { return type; } string multimedia::getAuthor() const { return author; } string multimedia::getOwner() const { return owner; } string multimedia::getPrice() const { return price; } string multimedia::getAvail() const { return avail; }