#include <iostream>
#include <string>
#include <fstream>
usingnamespace std;
void ReadData(int[],string[],string[],float[],int[]);
void DisplayMenu();
int main()
{
int SID[50];
string FNAME[50];
string MAJOR[50];
int HRS[50];
float GPA[50];
ReadData(SID,FNAME,MAJOR,GPA,HRS);
DisplayMenu();
return 0;
}
////////////////////////////////////
///////////////////////////////////
void ReadData(int SID[],string FNAME[],string MAJOR[],float GPA[],int HRS[])
{
ifstream infile;
infile.open("studinput.txt");
while (!infile.eof())
{
infile >> SID[i] >> FNAME[i] >> MAJOR[i] >> GPA[i] >> HRS[i];
i++;
}
infile.close();
}
/////////////////////////////////////////
////////////////////////////////
void DisplayMenu()// what the parameter and argument i must include for this function
{
int option;
cout << "enter your number from 1 to 4" << endl;
cin >> option;
.
.
.
.
. // what i can do int this area
}
the output looks like this
1. Find Student Data
2. Add New Student Data
3. Delete Student Data
4. Stop and Print the Report
Enter your option : 1 //or 2 or 3 or 4