标签: c++
我想在cpp文件中的所有函数之间共享一个变量,所以我写道:
static int Graph_Id = 0;
但是我注意到我也可以写:
int Graph_Id = 0;
这里有什么区别,正确的是什么?