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...
Type: Posts; User: PenguinTux
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...
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...
I'm using them to solve a quadratic equation.
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...
what am I doing that's making it take coeffstruct? and what can i do to make it take double?
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...
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...
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...
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...
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
...
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...
Ok here it is.
Main Program (assign3.cpp):
#include <iostream>
#include <cmath>
#include <fstream>
#include <cstdlib>
#include "funcs3.h"
using namespace std;
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...
I'm sorry but what's IDE? I'm using putty to program on bash on linux.
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?
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:...