//1.h
......
extern vector <int> vint;
.......//1.cpp
.......
vector<int> vint(10);
.......//2.cpp
......
#include"1.h"
int main()
{
vint.push_back(6);
}
.......出错,,显示
......
extern vector <int> vint;
.......//1.cpp
.......
vector<int> vint(10);
.......//2.cpp
......
#include"1.h"
int main()
{
vint.push_back(6);
}
.......出错,,显示
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货