Sorry, I yes, I actually defined the function, but was not having problems with the function itself, just the call.
I got it...thanks for the help, people...
Type: Posts; User: Griffin2020
Sorry, I yes, I actually defined the function, but was not having problems with the function itself, just the call.
I got it...thanks for the help, people...
Okay..but if I do not specify the parameters when calling the function, it tells me not enough parameters....
Yes, I define it earlier (the initial post has the rest of the code), and it does return an integer.
Thanks in advance.
oops, I knew it was something silly.
Now I get thris error, "Expression syntax in function GetInvData()"
It tags the line:
PrintReport(int *PartNo, float *Price, int *QtyOnHand, int *Reorder,...
I am trying to finish up a project on file I/O, and when compiling, I get the error "Declaration Terminated Incorrectly", but it marks the opening braces for one of the functions. What am I doing...
That makes sense. But how do I know where to initialize the variable in the first place? If I initialize it in main, then pass it to the called function, the value will be as set in main, right? ...
While we are supposed to be using C, we build as .CPP, and compile as C++. (My professor has been programming in Cand C++ since their inception).
However, we are not using pass by reference, but...
What I have a problem with is passign multiple variables. If it is just one, I am okay, but when it comes to passing two or three, I get compile errors.
I do not know when to actually declare...
Thanks, I understand the scope, but if I declare
int Score1, Score2, Score3 in main, then it tells me that I am not using the declared variables.
I am more worried about the other functions...
That makes sense, but I guess I do not undestand what makes it tick completely.
In this program, I am lost. it is a similar situation, main can only call other functions, and the other...
I tried searching, and while I found some good info, it did not answer my question. I am fairly new in programming, so forgive me if my question is simplistic.
We are writing a program that the...