Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***********************
- Name: Mary Soy
- Date: 10/26/09
- Class: CSCI 3333
- Professor: Schweller
- File: SuperTable.h
- ************************/
- #include <iostream>
- #include <fstream>
- using namespace std;
- class SuperTable
- {
- public:
- //constructor
- SuperTable();
- //add new student with given id and gpa to data structure
- void insertStudent( unsigned int id, double gpa );
- //return the gpa of the student with given id.
- //Return -1 if student is not in data structure
- double getGPA( unsigned int id );
- //change the gpa of the student with the given id to newGPA
- void updateGPA( unsigned int id, double newGPA );
- private:
- };
- SuperTable::SuperTable()
- {
- }
- void SuperTable::insertStudent(unsigned int id, double gpa)
- {
- }
- /*double SuperTable::getGPA(unsigned int id)
- {
- return -1;
- }*/
- void SuperTable::updateGPA(unsigned int id, double newGPA)
- {
- }
Add Comment
Please, Sign In to add comment