Hold on, I may have it.
Type: Posts; User: rrum
Hold on, I may have it.
I dont think anything is supposed to be passed to initialize actually. Does anyone know how I can access the data members without passing Fin in the initialize function?
Hmm, when I change void initialize() in the Fin class to void initialize(const Fin&) it seems to take care of the error, but then creates a few more....
Compiling...
HW14.cpp
c:\Documents...
I'm not sure I understand. I pass Fin& F to initialize, and use F.GridArray... and such. What exactly do I have to change?
I don't get how to rid my program of this error:
c:\Documents and Settings\Kevin\My Documents\Visual Studio Projects\HW14\HW14.h(88) : error C2511: 'void Fin::initialize(const Fin &)' :...
Nevermind, I got it. Thanks for the tip earlier, Daved.
I'm getting these errors:
c:\Documents and Settings\Kevin\My Documents\Visual Studio Projects\HW12\hw12.h(26) : warning C4520: 'Matrix' : multiple default constructors specified
c:\Documents...
I've seprated the int main into it's own cpp file, and it look just like my first post. Now this is what I have for my header file:
#include <string>
using namespace std;
const int...
Here's something I can modify and use:
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
using namespace std;
As the topic says, I need to write a program that raises a matrix to a user selected power. And do it by using a class Matrix and defining a function operator (^). Here's what I have so far to...
DONE AND DONE! THANK GOD. And by God I mean you ;)
Stayed up all night, and now I gotta statics test tonight to study for! Yay!
Ok, here's what I have now:
#include <iostream>
#include <cstdlib>
using namespace std;
class Fraction
{
aha:
#include <iostream>
#include <cstdlib>
using namespace std;
class Fraction
{
public:
In my istream operator I get "binary 'operator >>' has too many parameters" And then I get an error where I try to cin fract_1 and 2 in the main: "binary '>>' : no operator found which takes a...
Part of our assignment is to reduce two user inputted fractions so they are in their simplest form. The error messages I get mostly have to do with my "num" and "denom" for numerator and denomenator...