I keep getting an error when I compile this code and I can't figure out why. It tells me I have an error on the line that says "//defining the struct" It says there is a missing ';' and it unexpectedly found the end of file. I thought I had declared everything correctly (and the function calls and func. definitions are correct in the code). Am I doing something wrong here?
-Stephen
Code:
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
void NameBanner(ostream& out, int pp_num)
struct Potential
{ //Defining the struct
int studid;
double gpa;
int prelim1;
int prelim2;
int prelim3;
double progavg;
int final;
char grade;
};
int recfunc(Potential& potent)
int main()
{