Search:

Type: Posts; User: knoxmaddog

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,058

    How do I do that, I'm unfortunately terrible at...

    How do I do that, I'm unfortunately terrible at this
  2. Replies
    3
    Views
    2,058

    Standard Deviation Function

    #include <iostream>
    #include <string>
    #include <fstream>
    #include <cmath>

    using namespace std;

    const int N = 1000;
    void pass_array(double array[N]);
  3. Replies
    15
    Views
    1,799

    Thanks guys, I got it working. Really appreciate...

    Thanks guys, I got it working. Really appreciate the help.
  4. Replies
    15
    Views
    1,799

    OK, this is what I have and it's clearly not...

    OK, this is what I have and it's clearly not working. Anyone know what my C++ defecient brain is doing wrong.




    #include <iostream>
    #include <fstream>
    #include <string>

    using namespace...
  5. Replies
    15
    Views
    1,799

    Okay, maybe it will help if i state the end goal...

    Okay, maybe it will help if i state the end goal cause I am still confused and clearly no good at C++. I have to make a calculator function to calculate the median of an array. I know how to do...
  6. Replies
    15
    Views
    1,799

    This is where I have my problem. void...

    This is where I have my problem.




    void pass_array(int array[])



    What goes inside the square brackets?
  7. Replies
    15
    Views
    1,799

    Hmmm. Okay, I'm going to try that.

    Hmmm. Okay, I'm going to try that.
  8. Replies
    15
    Views
    1,799

    Array Function

    I have this code to store data from an array;



    double main()
    {
    ifstream data;
    double n[N];
    string filename;
    int count(0);
  9. Replies
    13
    Views
    2,360

    Haly crap, thanks for the help, I finally figured...

    Haly crap, thanks for the help, I finally figured it out. You've managed to do in 5 seconds what my professor couldnt explain in the past 3 weeks. Thanks.
  10. Replies
    13
    Views
    2,360

    Thanks for the help, I'm going to try that,...

    Thanks for the help, I'm going to try that, knowing my luck with this, I'll be back.
  11. Replies
    13
    Views
    2,360

    So basically, i should read the data out of the...

    So basically, i should read the data out of the file in main into an array, then send that data to the function to be averaged.
  12. Replies
    13
    Views
    2,360

    This one actually works, sorry about that other...

    This one actually works, sorry about that other one



    #include <iostream>
    #include <fstream>

    using namespace std;

    const int N=1000;
  13. Replies
    13
    Views
    2,360

    I need to make a main function and have the...

    I need to make a main function and have the filtering of the data occur in a second function which is called from main.
  14. Replies
    13
    Views
    2,360

    This is what I have so far #include...

    This is what I have so far



    #include <iostream>
    #include <fstream>

    using namespace std;

    const int N=1000;
  15. Replies
    13
    Views
    2,360

    I have a basic understanding, and I'm able to...

    I have a basic understanding, and I'm able to write the moving average function, I just don't understand at all how to make one that is callable from another function.
  16. Replies
    13
    Views
    2,360

    Beginner Problem

    Alright, I'm a mechanical engineering student taking a mandatory C++ course and I am absolutely terrible at it. I currently need to write a program that I've been trying to write for a week and it's...
Results 1 to 16 of 16