Search:

Type: Posts; User: smithc2005

Search: Search took 0.00 seconds.

  1. Thread: functions

    by smithc2005
    Replies
    2
    Views
    938

    functions

    I am trying to calculate 3 things from a data file using functions , I think something is wrong in main() because I not returning the right results

    What do you guys think?


    /* Christopher R...
  2. Replies
    2
    Views
    1,340

    Can't manipulate variable!

    So here I am writing this code and I am having problems with something basic, but I think I am overlooking something simple. Reading a text file I had to come up with arithmetic sum and...
  3. Replies
    7
    Views
    7,293

    I am not sure if understand this part of the code...

    I am not sure if understand this part of the code


    double MAX ( double a, double b )
    {
    return a > b ? a : b;
    }

    double MIN ( double a, double b )
    {
  4. Replies
    7
    Views
    7,293

    what if we aren't supposed to "know" how to make...

    what if we aren't supposed to "know" how to make a user defined function like you did in


    double MAX ( double a, double b )

    and


    double MIN ( double a, double b )
  5. Replies
    7
    Views
    7,293

    Max Min Problem

    So here I am writing this code and I am having problems with something basic, but I think I am overlooking something simple. I am trying to read from a text file and compute mean, root mean, and Max...
  6. Thread: Variables?

    by smithc2005
    Replies
    2
    Views
    1,059

    Variables?

    So none of my variables were saving so I made this simple code to check to see what was up and I dont know what to do



    int main()
    {
    int x,y;
    x=1;
    y=1;
    printf("%d %d", &x, &y);
Results 1 to 6 of 6