Recording System Issue C++

Hello:

I have been working on a very extensive recording system, and I only have one issue that I cannot seem to resolve. I'm sure another pair of eyes might help!
The following code is line 21, which the errors are in reference to. If additional code is needed I would be happy to provide it. Thank you in advance!

The following is the code in question:

1
2
3
4
5
6
7
8
9
10
void Print(*Student SArrayP,int Alphabetize){
	if(Alphabetize != 1){
		Alphabetize(SArrayP);
	}
	int i;
	for(i=0; i<STUDENTNUMBER;i++){
		SArrayP->Print();
		SArrayP+=1;
	}
}


Which in turn leads to this:

1
2
3
C:\Users\Spring Student- example\main.cpp|21|error: variable or field ‘Print’ declared void|
C:\Users\Spring Student- example\main.cpp|21|error: expected primary-expression before ‘SArrayP’|
C:\Users\Spring Student- example\main.cpp|21|error: expected primary-expression before ‘int’|
Well, I don't see line 21, but...it appears that your function Print() requires two parameters. In line 7, though, you're calling Print() without any parameters. I don't see how that's going to work.
Okay. I'll try that and get back to you if I can't figure it out.

Thanks!
Last edited on
Topic archived. No new replies allowed.