Doubly Linked List Node

This is a discussion on Doubly Linked List Node within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by DarkDot this is the whole code that i have. i meant just mingw in general working to ...

  1. #16
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Quote Originally Posted by DarkDot View Post
    this is the whole code that i have. i meant just mingw in general working to compile in windows.
    That isn't a complete code, which might be why any compiler would have issues. You don't compile headers, you compile source code.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  2. #17
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    there is no possible way you could just tell me if u see something wrong? i mean its just a review question i don't want to go through all that trobule when on the test i'm not going to be able to test it.

  3. #18
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    You showed part of a header. No code. What kind of help do you want?
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  4. #19
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    all i need is to create the header. is that not the whole header?

  5. #20
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,588
    there is no possible way you could just tell me if u see something wrong?
    So far what is wrong are just typographical errors. If the intention of this review question is to see if you can spot them, then clearly you have not, and need more practice. Asking us to help you spot them is a waste of our time, since it would just be feeding you the answers.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #21
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Quote Originally Posted by DarkDot View Post
    all i need is to create the header.
    Well, you've done just that.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  7. #22
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    ok and again it all looks right to you? its not typographical errors, it actual coding syntax stuff. i saw that stuff and its stupid and i should have corrected it for being totally syntactically correct.
    Last edited by DarkDot; 04-15-2007 at 11:54 PM.

  8. #23
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    For what?

    [edit]Problems without solutions are easier than solutions without problems.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  9. #24
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    what do u mean for what?

    true....

  10. #25
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Quote Originally Posted by DarkDot View Post
    The Set funtion is supposed to set the private data members, the retreive is supposed to retreive the private data members. And I need a constructor that allows a node to be immediately linked into a list.
    From all of your efforts this seems tantamount to me saying this:
    Code:
    void SendMeAMillionDollars(void);
    Hmm. Where's my money?
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  11. #26
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    haha sure if u give me a straight answer

  12. #27
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    You have presented no source code to compile. So without a question, what are we supposed to answer?
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  13. #28
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    source code...now i'm going to sound stupid...are u referring to the implementation file, in this case it would be the DLListNode.template? because the problem just said to create a header file and i didn't think that file was part of the header. otherwise if the header looks ok then i'm good to go.

  14. #29
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Didn't I say that already?

    But whether it's correct or not in part depends on the implementation.



    Why does the set function need to know about prev and next?
    Why does the retrieve function not return anything or take a modifiable argument?
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help Debugging my AVL tree program.
    By Nextstopearth in forum C Programming
    Replies: 2
    Last Post: 04-04-2009, 01:48 AM
  2. Reverse function for linked list
    By Brigs76 in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2006, 10:01 AM
  3. question about a working linked list
    By cold_dog in forum C++ Programming
    Replies: 23
    Last Post: 09-13-2006, 01:00 AM
  4. Linked list probs
    By mouse163 in forum C++ Programming
    Replies: 5
    Last Post: 02-19-2005, 04:41 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21