I am trying to reserve chunks of memory to save records of a struc type. I seem to have the int field down? But, there is one member that is char and I have no idea how to create it and initialize it. Could someone help me write these lines of code. There are two types of memory allocated: placement new and new.
Also, generally you do not allocate each member of a struct separately - instead it is more typical (and more correct) to allocate the entire struct in one go.
I get errors in MS Visual Studio. It flags syntax errors by using red underlines of code that is in error. Then, when you mouse over the error it pops up a error message.