/*
Programmer: Anthony Petecca
Class: CSCI 330 Fall2009
10-15-09
Assignment 3
Narrative: This is the Complex Class header
file
*/
#ifndef _COMPLEX
#define _COMPLEX
#include <iostream>
#include <cmath>
#include <cstddef>
usingnamespace std;
class ComplexType
{
public:
ComplexType();
~ComplexType();
ComplexType(const ComplexType& c);
ComplexType operator +(ComplexType c);
double realPart;
double fakePart;
private:
};
#endif
so.. the error i am getting is "1>ComplexType.obj : error LNK2019: unresolved external symbol "public: __thiscall ComplexType::ComplexType(class ComplexType const &)" (??0ComplexType@@QAE@ABV0@@Z) referenced in function "public: class ComplexType __thiscall ComplexType::operator+(class ComplexType)" (??HComplexType@@QAE?AV0@V0@@Z)"
if i take out the line that says ComplexType temp;
under the operator+ function.. this error disappears... any ideas??