![]() |
#2
sherwin2009-09-15 22:33
|
只有本站会员才能查看附件,请 登录
我建了个 1.h
const int from_1=10;
另外一个 test.cpp
#include <iostream>
#include "1.h"
using namespace std;
int main()
{
cout<<from_1<<endl;
return 0;
}
但程序还是正确执行了 并没有什么错误啊 ! #include "1.h"
using namespace std;
int main()
{
cout<<from_1<<endl;
return 0;
}