Function does not take 3 arguments?

Apr 27, 2013 at 6:25pm
I am doing a problem where I need to use arrays of string objects that hold 5 student names, an array of one character to hold the five students' letter grades and five arrays of doubles to hold each student's set of test scores and average score.

When I try to run it, I get these five errors.

error C2660: 'getTestScore' : function does not take 3 arguments : line 39
error C2660: 'getTestScore' : function does not take 3 arguments : line 45
error C2660: 'getTestScore' : function does not take 3 arguments : line 51
error C2660: 'getTestScore' : function does not take 3 arguments : line 57
error C2660: 'getTestScore' : function does not take 3 arguments : line 63

I need help on what is wrong.

Here's my code.
Last edited on Apr 29, 2013 at 4:06pm
Apr 27, 2013 at 6:43pm
The errors are quite descriptive IMO: you declare function getTestScore() with one int parameter, and on line 39 you call it with 3 parameters: function does not take 3 arguments, just 1. The same applies to the other lines.
Apr 27, 2013 at 7:12pm
Sorry I'm still confused on what I need to change. Still new at both this could you happen to maybe explain a little more in detail on what I need to change?

Apr 27, 2013 at 7:27pm
Your function prototype on line 4 says the function will only have one parameter. On your function declaration on line 95 you specify and implement 3 parameters.
Apr 27, 2013 at 7:43pm
Oh I see I got it thanks guys!!
Topic archived. No new replies allowed.