KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If a class has only one constructor with one parameter, how to declare an array? I know that vector is recommended in this case. For example, if I have a class class Foo{ public: Foo(int i) {} } How to declare an array or a vector which contains 10000 Foo objects?
Tags (comma-separated)
Save Edits
Cancel