CodePudding user response:
Open the class view, right-click on the target class, menu select "add" -> member functionActual add member functions directly on h and. CPP file to add, need not what kind of wizard, as the original class as follows:
H:
The class CClassB
{
Public:
CClassB ();
~ CClassB ();
};
.cpp
CClassB: : CClassB ()
{
}
CClassB: : ~ CClassB ()
{
}
Add function after fun01:
.h
The class CClassB
{
Public:
CClassB ();
~ CClassB ();
Public:
Int fun01 (void);
};
.cpp
CClassB: : CClassB ()
{
}
CClassB: : ~ CClassB ()
{
}
Int CClassB: : fun01 (void)
{
return 0;
}