Dustin Fader
2011-07-02 19:09:53 UTC
I keep getting the following errors when I try to compile my files for Q2:
q2.cc:28:error: 'cout' was not declared in this scope
and
q2.cc:55: error: expected constructor, destructor, or type conversion
before '&' token
and the relevant lines producing these errors are :
28: cout << "test";
and
55: istream &operator<<( istream &is, Complex &c ) {
I've included <iostream> in my h. and driver file just as in the example
code, so I'm not quite sure what is causing these errors...can anybody
assist?
P.S. My code for 55 doesn't actually contain the Complex struct, but
didn't want to include my actual implementation just incase...
q2.cc:28:error: 'cout' was not declared in this scope
and
q2.cc:55: error: expected constructor, destructor, or type conversion
before '&' token
and the relevant lines producing these errors are :
28: cout << "test";
and
55: istream &operator<<( istream &is, Complex &c ) {
I've included <iostream> in my h. and driver file just as in the example
code, so I'm not quite sure what is causing these errors...can anybody
assist?
P.S. My code for 55 doesn't actually contain the Complex struct, but
didn't want to include my actual implementation just incase...