Error: Expected primary-expression before...

Error: Expected Primary-expression before kid. I don't know what's done wrong

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Function prototype
void readStudentData(Student &);


int main()
{
    int amount;
    cout << "How many courses are you currently taking? ";
    cin >> amount;

    Student kid(amount);

    //Declares the function
    readStudentData(Student kid);
}

//The function, I took off the definition
void readStudentData(Student &kid)
{}
line 14 remove the second student
Topic archived. No new replies allowed.