Search:

Type: Posts; User: hkmixxa

Search: Search took 0.03 seconds.

  1. Does this seem correct? ...

    Does this seem correct?



    dynamicInt::dynamicInt(const dynamicInt& obj)
    {

    ptr = new int;
    if(ptr ==NULL)
    {cout<<"error"<<endl;}
  2. How would I check to see if there is dynamic...

    How would I check to see if there is dynamic memory available to create a new object within the copy constructor?
  3. Checking for dynamically allocated memory in copy constructors

    I'm trying to write a copy constructor that needs to throw the memory Allocation error exception if no dynamic memory is available. I have only overloaded the = operator but do not want to overload...
  4. Replies
    3
    Views
    1,963

    Thanks a lot. I didn't think that the Enter key...

    Thanks a lot. I didn't think that the Enter key press was needed with the other keys, but it works fine. Thanks for the reply.
  5. Replies
    3
    Views
    1,963

    key input definition

    I appreciate all the help you guys have been giving me previously. I wondering how the code works for setting the Enter key to continue through the loop on a program and if it is possible to allow...
  6. Replies
    8
    Views
    1,318

    This is a simple breakdown of my procedures: ...

    This is a simple breakdown of my procedures:

    Use a randomly generated integer to index into the array of size 7.
    Display the result of sending that array element the getKind(), getMovement(), ...
  7. Replies
    8
    Views
    1,318

    Well in this program, the user does not have...

    Well in this program, the user does not have access to the internal names. I'm just wondering if I can store instances/object names in an array. I must then generate a random integer within the...
  8. Replies
    8
    Views
    1,318

    instances w/in an array

    I'm trying to create an instance of class Chicken using the element in the array handles[7].




    char *temp;
    char *handles[7]="Chick","Duck","Green", "Hawk","Jab","peacock","Red"};


    ...
  9. Replies
    9
    Views
    1,357

    The input and course has to be a char array...

    The input and course has to be a char array because if int is used it does not work with my program and simply replies "no matchno matchno". Are there any other suggestions for searching through a...
  10. Replies
    9
    Views
    1,357

    Searching for an entry in a file?

    I have a problem regarding the code for searching a text file. My program is able to add information, display, and save it to a text file, but I'm having trouble figuring out how to search the text...
  11. Replies
    7
    Views
    1,880

    Thanks a lot for the help. My problem was that I...

    Thanks a lot for the help. My problem was that I did not create the code for the destructor yet and when I did, it was working properly.

    I have another problem regarding the code for searching a...
  12. Replies
    7
    Views
    1,880

    Having trouble with Linked List

    Hi I'm newbie on the linked list concept and I'm trying to write a program that can basically allow a user to store information into a linked list with the basic functions: append, delete, display,...
Results 1 to 12 of 12