Search:

Type: Posts; User: gavra

Page 1 of 11 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    23
    Views
    2,408

    Thank you both. I think I'll go with the second...

    Thank you both.
    I think I'll go with the second option, seems more convinient to implement.
    If I get it straight, by moving the extra data to a memeber in RBNode, I don't need to worry about the...
  2. Replies
    23
    Views
    2,408

    Yeah, I'm calling it "operator =" just for the...

    Yeah, I'm calling it "operator =" just for the visibility of the code it's still a method...

    Thanks.
  3. Replies
    23
    Views
    2,408

    I see I can't edit my las replay so I am writing...

    I see I can't edit my las replay so I am writing in a new one.
    I want to emphasize the problem so here is a piece of code of the idea:



    // say somewhere in the code I have this assignment:...
  4. Replies
    23
    Views
    2,408

    First of all, I can't use any "ready for use"...

    First of all, I can't use any "ready for use" structures, the whole assignment idea is I'll implement everything by my self.
    About the inheritance, I have been wondering some time what should be the...
  5. Replies
    23
    Views
    2,408

    Yes, I read online and in order to overload...

    Yes, I read online and in order to overload asignment operator of pointers I'll need to wrap my class (it does make some sense). However, I think it is better to use it as a method (replacing '='...
  6. Replies
    23
    Views
    2,408

    In RBNode: virtual RBNode & operator=(const...

    In RBNode:


    virtual RBNode & operator=(const RBNode & rhs);

    RBNode & RBNode::operator=(const RBNode & rhs)
    {
    this->left = rhs.left;
    this->right = rhs.right;
    this->parent = rhs.parent;
  7. Replies
    23
    Views
    2,408

    Yeah I guess it's better, I'll have to make some...

    Yeah I guess it's better, I'll have to make some modifications later.
    I think I still need to fix that overloading problem.
    Yes (in the base class "RBNode").
  8. Replies
    23
    Views
    2,408

    Oh good to know, that got me confused. The whole...

    Oh good to know, that got me confused.
    The whole virtual assignment operator overloading thing seems confusing (since the return type is diffrent), can someone shoot a quick example on how to do...
  9. Replies
    23
    Views
    2,408

    You are right, my bad I sure have to allocate a...

    You are right, my bad I sure have to allocate a BookNode there and it's in a another method since at start I haven't even declared my own cc and used it in rbt-Delete. At first glance it seems that I...
  10. Replies
    23
    Views
    2,408

    copy constructor doesn't invoke

    Hi,
    My RedBlackTree and RBNode classes has a static instance that represents the Nil of the rbtree (both point to the same node).
    I encountered a bug during some tests and it seems that the nil...
  11. Replies
    8
    Views
    1,002

    Great. Thank you!

    Great. Thank you!
  12. Replies
    8
    Views
    1,002

    I removed the include of CNode.h in CountsNode.h...

    I removed the include of CNode.h in CountsNode.h and moved the implementation just as you said but still 'No memebers' for customer... /:
  13. Replies
    8
    Views
    1,002

    Thanks, assumed there's something like this, but...

    Thanks, assumed there's something like this, but it still doesn't work:

    CountsNode.h


    #ifndef COUNTS_NODE_H
    #define COUNTS_NODE_H
    #include "RBNode.h"
    #include "CNode.h"
  14. Replies
    8
    Views
    1,002

    Two objects that has a pointer to each other

    I need to have two objects that has a pointer to each other.


    class A
    {
    .....
    B* pointer_to_B;
    }
  15. Replies
    2
    Views
    912

    Thanks. Finally I found all of my mistakes. I...

    Thanks.
    Finally I found all of my mistakes.
    I updated the files at pastebin if anyone here wants.
  16. Replies
    2
    Views
    912

    RB Tree | Inser & Delete bugs

    Hi,
    For those who already seen my last post probably understand this one (XD)
    So I am trying to implement a red black tree in C++ and it seems to be buggy \=

    main:


    int main()
    {...
  17. Replies
    7
    Views
    1,644

    The question is on the chapter of rb trees XD...

    The question is on the chapter of rb trees XD unfortunately..
    However, I think I'll just start to implement it hoping it'll go out well

    Thanks
  18. Replies
    7
    Views
    1,644

    Yeah, it's not that it's hard or something, it's...

    Yeah, it's not that it's hard or something, it's just a lot to write and many cases to handle which I find boring and frustrating...


    The homework is to develop an algorithm that solves a...
  19. Replies
    7
    Views
    1,644

    Red Black Tree Implementaion

    It seems like implementing an RB tree in C++ is a hell of a nightmare.
    I have tried to look for an implementation online but couldn't find a good and clean one.

    Is there anyone here who had this...
  20. Replies
    5
    Views
    1,033

    ok, great. Thank you!

    ok, great. Thank you!
  21. Replies
    5
    Views
    1,033

    Thank you, that's what I was looking for, But...

    Thank you, that's what I was looking for, But since I have two format variations I can't use it like that. Is there a way to read the whole line(to a string) and then split to my variables with the...
  22. Replies
    5
    Views
    1,033

    formatted input using cin

    Hi,
    I'm trying to use cin to get input in a specific format.
    Say I have this string as an input: "+ Baraq 112540783 AB1234"
    I want my variables to look like that:
    name = "Baraq"
    id = 112540783...
  23. Replies
    2
    Views
    2,801

    Good (even though I'm gonna have to build the...

    Good (even though I'm gonna have to build the list my self).
    Does the designer uses DataTable as the source of the datagridview by default?
    If I would load a dataset and then make changes in the...
  24. Replies
    2
    Views
    2,801

    Good solution to filters on datagridview

    Hi,
    I'm developing an info managment system. I am using Access as my db.
    Ufortunetly, the datagridview doesn't support filtering rows by column content.
    I'm using TableAdapter as the source and I...
  25. Replies
    2
    Views
    4,444

    The problem is that it doesn't really calculate...

    The problem is that it doesn't really calculate the best next move. It does the same moves all the time depending if the cell is available.
    No errors.
    I was asking more about the algorithm itself,...
Results 1 to 25 of 267
Page 1 of 11 1 2 3 4