JenniferF
12th May 2011, 06:12
//A.h
class A
{
public:
int quantity[8];
int m;
}
//B.h
class B
{
public:
void getquantity ();
}
//B.cpp
void B::getquantity()
{
//how can I get access to quantity or any variables from A? when I try A::m- I get errors
}
class A
{
public:
int quantity[8];
int m;
}
//B.h
class B
{
public:
void getquantity ();
}
//B.cpp
void B::getquantity()
{
//how can I get access to quantity or any variables from A? when I try A::m- I get errors
}