How can I create a dynamically sized array of structs?
You’ve tagged this as C++ as well as C. If you’re using C++ things are a lot easier. The standard template library has a template called vector which allows you to dynamically build up a list of objects. If you’re using C things are a lot harder, yes malloc, realloc and free are the tools … Read more