Hey guys, just wonderin why I am getting a compiler error on this code... I've had this error before and spent ages tryin to fix it.... But i can tfor the life of me remember... Thanks to all who reply...:)
class Date
{
public:
Date();
private:
};
class Time
{
public:
Time();
private:
};
class Product
{
public:
Product();
private:
};
int main()
{
Collectable* collected[4];
collected[0] = new Date();
collected[1] = new Time();
collected[2] = new Product();
collected[3] = new Date();
return 1;
}
[TEX]
Error:
error: `collected' was not declared in this scope
error: `Collectable' was not declared in this scope
[/TEX]