+ 4
The difference
In Java I can do this : class Program extends Vector { } why can't I do this in c++ class Program : public vector { }; can AnyOne tell me why??
2 Respostas
+ 1
vector is a template class, so you'd have to implement the template parameter(s), like so
template <class T, class Alloc = std::allocator<T>>
class Program : public std::vector<T, Alloc> { ... };
+ 2
@Madera
That means I can do it. but I didn't know how.
Thank you.