1
bunny
is the standard class that has only the bunny(construtor)
and ~bunny(desconstrutor)
pattern.
int main()
{
vector<bunny> bunnies; // Este usa o construtor padrão.
bunnies.push_back(); // ERRO! este não pode usar.
system("Pause");
return 0;
}
Error C2661 'std::vector<bunny,std::allocator<_Ty>>::push_back': no overloaded function takes 0 arguments.
Did the answer solve your problem? Do you think you can accept it now? See [tour] to understand how it works. It would be helpful to indicate to everyone that the solution was useful and satisfactory for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).
– Maniero