首先,我有这样的事情: class Test {
std::vector<int> a, b;
void caller(...) { callee(...); }
void callee(...) { /* Do stuff with 'a' */ }
}
我想什么是有不完全一样callee但对于矢量b功能。要做到这一点有两个明显的解决方案: 传递矢量a或b作为
我在头文件中有两个typedef struct。 typedef struct {
int fallLevel;
unsigned long lastStepTime;
} PlayerFallStruct;
typedef struct {
int id;
char* name;
int x;
int y;
Player