I need help with pointers and memory management. I need to store different objects, all derived from the same base class, and have been using an array to do this but it is causing a segmentation faul
I\'m working on a very basic game and I have a std::list collection of objects that pertain to my game. I declared it as:
I have a struct which contains a member called char *text. 开发者_Go百科 After I\'ve created an object from the struct, then how do I set text to a string?If your struct is like
I know this is a dumb question, but its really bugging me. Take the following: public <TParseable> LinkedList<TParseable> readAllParseable(
I am trying to build an array that contains arrays of dictionary objects in Xcode.I can create a working array that has one or more dictionaries in it and then use the addObject: method to add this ar
In C++, is it possible to define a sort order for pointers to member functions? It seems that the operator< is undefined. Also, it\'s illegal to cast to void*.
I\'m specifically focused on when to use malloc on char pointers char *ptr; ptr = \"something\"; ...code...
When creating an object instance as such in C# Myclass mc = new Myclass(); This mc is now a reference to a Myclass object created in memory.It\'s like a \'pointer\' to that memory.
The questions I have are NOT homework questions, but I am considering using these concepts in my assignment. The context, if it helps, is like this: I need to keep track of several union instances and
I am a C beginner, and I am curious why this gives me a Seg Fault everytime: #include <stdio.h> #include <stdlib.h>