I have this code.. CEngineLayer::CEngineLayer(void) { // Incoming creation of layers. Wrapping all of this in a try/catch block is
I have an object with a vector of pointers to other objects in it, something like this: class Object {
This question already has answers here: Closed 12 years ago. Possible Duplicate: Do the parentheses after the type name make a difference with new?
well i\'m using while loop: while(fgets(pclientRow, 1024 , f) != NULL) in other classes it works ok, but in o开发者_开发问答ne of them, when i\'m reading from
I am trying to dynamically allocate a large array in Ada (well, an array of an array). For instance, I\'m able to dynamically allocate an object like so:
[EDIT] Okay, so that makes sense, thank you sharptooth and CashCow. You can\'t delete data allocated as const, which makes string literals out of the question. So if I change my initialization to loo
Is the following C++ code a memory leak? list.push_back(new String(\"hi\")); As I understand it, push_back from any std collection/container always makes a copy.So if the new string is copied, noth
This is merely for curiosity sake because I have not used new and delete in c++ except for the most basic uses.
There is an AuthenticationBase class in WCF RIA Services. The class definition is as follows: // assume using System.ServiceModel.DomainServices.Server.ApplicationServices
Say I do something like this for(int i = 0; i < 10; i++) { //create a pointer object using new //use the object