关于全局变量的疑问
一个console程序Test:
加入o.h
//o.h
int i;
//end o.h
//Test.cpp
#include "stdafx.h"
#include "o.h"
i=0;
int main(int argc, char* argv[])
{
return 0;
}
//end cpp
error:
'i' : missing storage-class or type specifiers
fatal error C1903: unable to recover from previous error(s); stopping Error executing cl.exe.
请高手指点