Hi,
How do I properly include classes that are dependable of each other, without getting an error that the compiler don't knoe anything about one of the classes?
Ex:
vector.h
matrix.h
thanks
How do I properly include classes that are dependable of each other, without getting an error that the compiler don't knoe anything about one of the classes?
Ex:
vector.h
Code:
class Vector
{
public:
...
Vector operator*(const Matrix& m) const;
}
Code:
class Matrix
{
...
Vector operator* (const Vector& v) const;
}
Comment