call function between classes

hello
I have 3 classes class A, B, and C

class A is the main class and content the main function also, i call class B and class C in the main as b1,b2 and c1.

in class B there is a vector (V) has a list of int. and 3 functions Add, get and delete. all the thing in the class is public.

in class C i have function that need to (B::get) from b.

what I want is that how I can make c1 call get of b1 to return the value of the V in b1 after that use add of b2 to add new item in V of b2.
Thanks in advance
That's really hard to follow.

Can you post example code?
Topic archived. No new replies allowed.