I'm creating a class and a user defined library and also creating a text file. I tried to call the functions but having lots of errors. Here is the program:
#ifndef MYLIB
#define MYLIB
template <class THREE, int n>
class THREE
{
private : struct RECORD
{
string name;
int age;
float gpa;
};
RECORD a[n];
void THREE <int n> ::DisplayAverage(ageAve, GpaAve)
{
cout << "Their age average is :" << average << endl;
cout << "Their Gpa average is :" << gpaAverage << endl;
}
void THREE <int n> ::DisplayAbove(GpaAve)
{
for (int i=0; i<n; ++i)
cout << "This is the name of those with GPA above average" << n[i] << endl;
}