DEV Community

Discussion on: How to create an Empty Vector in C++?

Collapse
 
pauljlucas profile image
Paul J. Lucas

This shouldn't be tagged #c which is for C, not C++. This should be tagged #cpp.

Please learn to use Markdown, specifically code fences for formatting code so it's more readable.

Lastly, your code also won't even compile. You don't include the header for vector and vector is a template class and you're missing the template types. You also misspell vector as Vector once. Case matters.