Search:

Type: Posts; User: samual_van

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    1,665

    initialize dynamic arrays in contructors??

    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...
  2. Hi JawIB, Thanks for your help. I changed...

    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: ...
  3. newbie question regarding usage of structures in class

    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...
  4. Replies
    2
    Views
    2,076

    yup, that works!! thanks Salem! I sometimes think...

    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...
  5. Replies
    2
    Views
    2,076

    pointer to an array in a structure

    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;
    };
  6. Hi 7stud! Thanks for your comments....

    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...
  7. passing pointer to structure to a function

    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...
Results 1 to 7 of 7