在main.cpp中定义了全局变量
vector<int> m_latestFaces;
想要在mode_judge中调用,则使用语句
extern std::vector<int> m_latestFaces;
如果添加
extern vector<int> m_latestFaces;
则会报错,为什么我还没明白
std 的作用是什么有时间我还得看看
在main.cpp中定义了全局变量
vector<int> m_latestFaces;
想要在mode_judge中调用,则使用语句
extern std::vector<int> m_latestFaces;
如果添加
extern vector<int> m_latestFaces;
则会报错,为什么我还没明白
std 的作用是什么有时间我还得看看