Hi, I am receiving a C2664 error on my program. This is the first time I have ever received this error. It has to do with the array and the way I am initializing it..
The error points to this line... float Sum = doSum(Grade);Quote:
error C2664: 'doSum' : cannot convert parameter 1 from 'int' to 'int '
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
That line above is where I am initializing. My function prototype line is ..... float doSum(int Grade);
Can someone tell me why I would be receiving this error?