March 4th, 2014, 02:31 PM
I have a piece of code that looks like this
Basically, I have a Customer class and the Customer selects from a list of offers from a vector which is defined inside the Customer class.
February 27th, 2014, 05:06 PM
Thanks. However, I need this forward declaration because I have a class B using class A as well. It's like a cyclic relationship
February 27th, 2014, 04:23 PM
Okay here I go again:
class A; //Forward Declared
vector <A> v1;
February 27th, 2014, 03:49 PM
I am new to this and not sure what exactly you mean.
Anyways, All I want is to create a vector of objects of a particular class. What is the difference between
February 27th, 2014, 02:08 PM
class A; //forward defined in class B.h