Declaring class without defining

I have 3 classes in header file. The code looks somewhat like below. there is no problem for func_b() since class A is above it in the file. But I cant make the compiler to identify B from A for calling func_a(). How can I do it ? is there smthn like just declaration of the class without defining it as can be used for functions ?

1
2
3
4
5
6
7
8
9
10
11
12
 Class A{
void func_a(vector<B>&);
};

Class B{
void func_b(vector<A>&);
};

Class C{
vector<B> b;
vector<A> a;
}
Yes.
class B;
Thank you..!!! guess I should have tried that myself before posting here..!! its too simple..!! Thanks a lot...
Topic archived. No new replies allowed.