Hi Guys,
I have general C++ question. When I am using dynamic arrays is it a good idea to just create the array with "new int[1]" for example in Constructor and then resize it where its...
Type: Posts; User: samual_van
Hi Guys,
I have general C++ question. When I am using dynamic arrays is it a good idea to just create the array with "new int[1]" for example in Constructor and then resize it where its...
Hi JawIB,
Thanks for your help. I changed the populate function, But still in the getArrayStruct function I am doing something I am not supposed to. It is still printing gibberish. :confused: ...
Hi Guys,
I have an issue thats befuddling me. I am attaching the code below. My problem is in getArrayStruct method, I am not able see the contents of my structure. I think the problem may be a...
yup, that works!! thanks Salem! I sometimes think there are no bounds to human (my) stupidity :) But I console myself saying that i feel same way when I am starting out on new stuff and ask questions...
Hi Guys!
I need some guidance. How do I allocate a dynamic array in a structure? I am doing something like this
struct strArray {
int size;
int position;
int *byteArray;
};
Hi 7stud!
Thanks for your comments. Regarding 1) I completely agree and am thankful for your advice, will follow it. 2) I found that out and fixed it. But 3) was something I had read and...
Hi Guys,
I am a newbie to c++ programming and I need help with my program. Can anybody help me out? I am trying to pass pointer to a structure to create an object. The program compiles fine but...