Or
[*]B Add to the function definition of the struct/class
Edit: The following is not necessarily valid C++ and should be read as psudo-code
Code: Select all
struct MyStruct {
public:
void MyFunction () {
// Content A
}
}
< /code>
A: < /p>
MyStruct a;
a::MyFunction() {
// Content B
}
Code: Select all
MyFunction () {
// Content A
// Content B
}
< /code>
b: < /p>
MyStruct::MyFunction () {
// Content B
}
MyStruct b;
Code: Select all
MyFunction () {
// Content A
// Content B
}
Mobile version