Search:

Type: Posts; User: vgame64

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,504

    Tbh, I have always known pointers from when I...

    Tbh, I have always known pointers from when I learned them, but via school we have always used Java, so I haven't worked that much with pointers. I used an array to fix the code, but I was not sure...
  2. Replies
    10
    Views
    1,504

    OK, I thought that for a second...i just sure as...

    OK, I thought that for a second...i just sure as heck hope thats what my teacher is trying to show. It's simply two lines of retarded code...at least to make a mistake like that. So...I was just...
  3. Replies
    10
    Views
    1,504

    Quick C Question

    I have a C homework to do (I am a C++ guy) and the question asks us how to fix the following code the crashes:

    int *a = 0;
    *a = 5;

    Fix it using dynamic memory management or static variables.
    ...
  4. Replies
    2
    Views
    1,436

    I solved it and corrected the code...so nvm. ...

    I solved it and corrected the code...so nvm. Thanks!
  5. Replies
    2
    Views
    1,436

    Insertion Sort Help

    Hi, I am stumped as to why the following code isn't working properly:
    (I will organize the code into functions and what not after...it was like that before, but i changed it many times to make it...
  6. Replies
    10
    Views
    975

    Thanks!

    Thanks!
  7. Replies
    10
    Views
    975

    I believe it assumes that elsewhere NodePtr and...

    I believe it assumes that elsewhere NodePtr and Head, etc are defined.
  8. Replies
    10
    Views
    975

    Oh, so you are saying since *cur is pointing to...

    Oh, so you are saying since *cur is pointing to nothing, it cant work?
  9. Replies
    10
    Views
    975

    And this is the exact question if I asked it...

    And this is the exact question if I asked it wrong:


    The following function is supposed to return the length of a linked list. What are the logical errors in
    this function?
    int length(NodePtr...
  10. Replies
    10
    Views
    975

    whatever random value the os has stored in that...

    whatever random value the os has stored in that memory space for i at that time. Other compiler would just give an error.
  11. Replies
    10
    Views
    975

    to the node counter? ..nvm, let me think some...

    to the node counter?

    ..nvm, let me think some more before answering.
  12. Replies
    10
    Views
    975

    Linked list logic error

    Hi, their is part of a homework problem which I seem to be stuck on. It asks what are the logic errors in a program if the function defined is supposed to return the legnth of a linked list.

    The...
  13. Replies
    4
    Views
    924

    Ah yep, makes sense. Thanks for the assistance.

    Ah yep, makes sense. Thanks for the assistance.
  14. Replies
    4
    Views
    924

    Question about defining classes

    Hey, I am just wondering if a class definition can include two constructors, such as the following:

    Year(int days = 365, int weeks = 52, int months = 12);
    Year();

    Thanks (my intuition says yes...
  15. Replies
    4
    Views
    2,566

    AHH I figured it out!!! Thanks so much for...

    AHH I figured it out!!!

    Thanks so much for your help....I am indebted to you for life!

    ^_^


    :D
    :D
    :D
  16. Replies
    4
    Views
    2,566

    parking garage calculator help

    thanks!
Results 1 to 16 of 21