Search:

Type: Posts; User: PenguinTux

Search: Search took 0.01 seconds.

  1. Replies
    21
    Views
    3,323

    Well I got my program to run...here's the final...

    Well I got my program to run...here's the final results. The only thing that isn't working properly is my loop isn't running the number of times I put into the command line. The thing that wasn't...
  2. Replies
    21
    Views
    3,323

    Thanks, we just started learning classes and my...

    Thanks, we just started learning classes and my professor is giving us an assignment that involves a bit more than what he's taught so far. Would you mind telliing me directly how i can fix my...
  3. Replies
    21
    Views
    3,323

    I'm using them to solve a quadratic equation.

    I'm using them to solve a quadratic equation.
  4. Replies
    21
    Views
    3,323

    Ah I see how it's taking it. The trouble now...

    Ah I see how it's taking it. The trouble now though is it says coeffs and roots isn't declared in this scope.

    I changed solver::coeffStruct coeffs; to solver::coeffStruct coeff; and...
  5. Replies
    21
    Views
    3,323

    what am I doing that's making it take...

    what am I doing that's making it take coeffstruct? and what can i do to make it take double?
  6. Replies
    21
    Views
    3,323

    roots = solve.calcRoots(coeffs); doesn't work...

    roots = solve.calcRoots(coeffs); doesn't work either, which seems right to me which is what I origonally had.
    coeffs = solve.readCoeffs(); works and its the same method. I just can't seem to see...
  7. Replies
    21
    Views
    3,323

    My changed solver.h file which now matches my...

    My changed solver.h file which now matches my solver.cpp file.


    // file solver.h
    // Specification of a class providing service of solving
    // quadratic equations of the form a*b^2 + b*x + c = 0...
  8. Replies
    21
    Views
    3,323

    Well making it exactly the same for calling the...

    Well making it exactly the same for calling the function is giving me errors aswell, thats why I asked if it was different in that case. So can you give me an example of how one of my function calls...
  9. Replies
    21
    Views
    3,323

    Thanks! What about the solverTest.cpp file...

    Thanks! What about the solverTest.cpp file though. I can't get them to match up equally like that without getting errors. Since it's calling the functions I assumed it wouldn't work anyways, but...
  10. Replies
    21
    Views
    3,323

    Help with classes & structures

    I have to make a quadratic equation calculator out of classes and use structures with arrays. I'll post the code I have below and the errors I'm getting after that. Please help!


    file: solver.h
    ...
  11. Replies
    11
    Views
    1,755

    I'm sorry funcs3.cpp has the same contents as...

    I'm sorry funcs3.cpp has the same contents as funcs3.h and im using the latter. Sorry for the confusion there. I take it im suppose to use both files then and not just the header from the way your...
  12. Replies
    11
    Views
    1,755

    Ok here it is. Main Program (assign3.cpp): ...

    Ok here it is.

    Main Program (assign3.cpp):

    #include <iostream>
    #include <cmath>
    #include <fstream>
    #include <cstdlib>
    #include "funcs3.h"
    using namespace std;
  13. Replies
    11
    Views
    1,755

    So I have to include the header file inside my...

    So I have to include the header file inside my compilation statement?

    What I've used in the past for a single file is g++ -o prog prog.cpp
    and can run it then by say ./prog


    edit: I believe...
  14. Replies
    11
    Views
    1,755

    I'm sorry but what's IDE? I'm using putty to...

    I'm sorry but what's IDE? I'm using putty to program on bash on linux.
  15. Replies
    11
    Views
    1,755

    Thanks for the help! Is the structure fine? I...

    Thanks for the help!
    Is the structure fine? I doesn't seem to me like I did it completely right. Any advice on that part?
  16. Replies
    11
    Views
    1,755

    Help with Files and Structures

    Hey I'm having a really hard time with an assignment that's due Tuesday at midnight. If anyone out there is willing to help me I would greatly appreciated it!

    Please help!!!!

    Instructions:...
Results 1 to 16 of 16