65,187
社区成员




#include <iostream>
#include <list>
using namespace std;
struct T
{
int num;
};
class Test
{
public:
Test();
~Test();
static list<T> T_list;
};
Test::list<T> T_list(1, T);
int main(int argc, char* argv[])
{
T t;
t.num = 1;
//Test test;
Test::T_list.clear();
Test::T_list.push_back(t);
system("pause");
return 0;
}