Search:

Type: Posts; User: Griffin2020

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    7,342

    Sorry, I yes, I actually defined the function,...

    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...
  2. Replies
    8
    Views
    7,342

    Okay..but if I do not specify the parameters when...

    Okay..but if I do not specify the parameters when calling the function, it tells me not enough parameters....
  3. Replies
    8
    Views
    7,342

    Yes, I define it earlier (the initial post has...

    Yes, I define it earlier (the initial post has the rest of the code), and it does return an integer.

    Thanks in advance.
  4. Replies
    8
    Views
    7,342

    oops, I knew it was something silly. Now I get...

    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,...
  5. Replies
    8
    Views
    7,342

    Declaration terminated incorrectly

    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...
  6. Replies
    13
    Views
    2,389

    That makes sense. But how do I know where to...

    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? ...
  7. Replies
    13
    Views
    2,389

    While we are supposed to be using C, we build as...

    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...
  8. Replies
    13
    Views
    2,389

    What I have a problem with is passign multiple...

    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...
  9. Replies
    13
    Views
    2,389

    Thanks, I understand the scope, but if I 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...
  10. Replies
    13
    Views
    2,389

    That makes sense, but I guess I do not undestand...

    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...
  11. Replies
    13
    Views
    2,389

    Why do variables equal functions?

    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...
Results 1 to 11 of 11