65,170
社区成员




#include <iostream>
#include<vector>
using namespace std;
class test
{
public:
test()
{
cout<<"test::test"<<endl;
}
~test()
{
cout<<"test::~test"<<endl;
}
test(const test&s)
{
cout<<"test::test(const test&s)"<<endl;
}
};
int main(int argc, char *argv[])
{
test xxx;
std::vector<test> buf;
cout<<"--"<<endl;
buf.push_back( xxx );
cout<<"--"<<endl;
return 0;
}