Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th
Still learning C++, and still having specific errors :). I have an object of the following composition:
Why do Objective-c objects have to be dynamically allocated? Why do I have to make it a pointer to an object, unlike in C++ I can create开发者_开发百科 them on stack?
running my program with gdb I get this: fem.o: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr)
I have something like this in my cod开发者_开发技巧e typedef struct ts_fem_mesh { double**vertices;
I am trying to dynamically allocate an array of base(Student) classes, and then assign pointers to derived(Math) classes to each array slot. I can get it to work by creating a single pointer to the ba
I have created a 2 d array which reads as follows int i,j,lx,ly;// lx,ly are the row and column respectively
I\'ll start out by saying, use smart pointers and you\'ll never have to worry about this. What are the problems with the following code?