http://msdn.microsoft.com/vstudio/express/visualc/
Visual C++ Express - download for free
Object Oriented Database
class student{
public:
string fname, lname, major;
double gpa;
int courseId[3]; //course ids *primary key
}; //student
Add to Student Class the courseID
Modify:
addStudent() - Ask the id of courses taken
load() - for student.txt, read courseIds
ex. studentFile>>s[n].fname>>s[n].lname>>s[n].major>>s[n].gpa>>s[n].courseId[0]>>s[n].courseId[1]>>s[n].courseId[2]
store() - for students.txt, write courseIds
ex.
studentFile<<s[i].fname<<"
"<<s[i].lname<<" "<<s[i].major<<" "<<s[i].gpa
<<" "<<s[i].courses[0]<<" "<<s[i].courses[1]<<" "<<s[i].courses[2]<<endl;
students.txt - add course ids to student record
Create Report (ex. Transcript listing
Student Info and Courses)
Menu Example:
Student Menu (S)
Course Menu (C)
Exit (E)
Student Menu
Add (A)
Update (U)
Search by Last Name (L)
Search by ID (I)
Save (S)
Course Menu
Add (A)
Update (U)
Search by CRN (L)
Save (S)