Search:

Type: Posts; User: Lord Asriel

Search: Search took 0.01 seconds.

  1. This seems to work, but spawns more questions: ...

    This seems to work, but spawns more questions:

    1) Now, what category is this iterator? Is it a random-access one, as I want it?

    2) Reminding this:


    struct node{
    UL v,l;//(V)alue, (L)eader...
  2. About STL, iterators, and oerator overloading

    I am introducing STL to myself. I want to make a set (STL container) of a weighted graph's edges. If I understand correctly, the associative containers like set, use the operator < on the...
  3. Alright. I post my complete project now. I have...

    Alright. I post my complete project now. I have tested insertion and print and they work. I will add deletion later. So, tell me what you think could be designed better and why.

    List header file,...
  4. That sounds good, and thank you for the...

    That sounds good, and thank you for the resources. Since what I'm coding seems to be working, I'd rather learn from the debuggin process and, after all works, I'll present it, the end "product", so...
  5. While I keep on trying different techniques (4,...

    While I keep on trying different techniques (4, most notably), I have this to ask:
    The only structure I can make so that I have a "reverse" member operator , which will return me the container of...
  6. The common subset of A and B is A itself. I...

    The common subset of A and B is A itself. I don'tt really get why you said that about protected or private inheritance. Actually, as far I'm concerned, I might have used structs everywhere: its...
  7. I don't understand how this would solve the...

    I don't understand how this would solve the problem. Why care about A - it is fine as it is.
  8. OOP proposal about having two instances of the same class on another

    This has caused me great headache, making me delete well-working code to write another and then return to the first and so on.



    class X();

    class A{
    int key;
    X *n, *p;
    public:(some methods...
  9. Replies
    9
    Views
    1,048

    ...and it was that, indeed. What a newb I be. But...

    ...and it was that, indeed. What a newb I be. But the "sometimes" part made me not suspect anything like that! MANY THANKS!!
  10. Replies
    9
    Views
    1,048

    The problem analytically: There is a single...

    The problem analytically: There is a single (wx)Button. When it is pressed, some of my routines may be run, some others not, but in the end the values of the two rich text controls are set to one of...
  11. Replies
    9
    Views
    1,048

    Uh, the "terminal"? If you mean the compiler, I...

    Uh, the "terminal"? If you mean the compiler, I use wxdev-c++, and there are no errors at all.
  12. Replies
    9
    Views
    1,048

    nvoigt: I understand that giving full details is...

    nvoigt: I understand that giving full details is the usual course of asking for help, but I thought I'd start from the few facts since the program does work in some environment.

    Since more are...
  13. Replies
    9
    Views
    1,048

    Runs on wxdevc++, but not on OS!

    Hello all! I need help with a peculiar matter: The code I've written works perfectly when I run it from the compiler, but not well when I run the .exe on the output folder.

    I use wxdev-c++, and...
  14. Replies
    34
    Views
    3,165

    This reminds me of myself when trying to solve...

    This reminds me of myself when trying to solve erternity 2. The brute force attack needed 10^500 iterations, and my algorithm only needed 10^50. My pc would produce about 10^13 in a month.
  15. I see...so the use of headers is quite similar to...

    I see...so the use of headers is quite similar to when, in a one-source-file-program, I make function declarations before the main(), but add the definitions later?

    So, this also means that if i...
  16. Does #include indirectly include the source file too?

    I have read many tutorials on organizing code, and this simple yet important question is all that remains, for total enlightenment to be reached :).

    So, when I #include "filename.h", the compiler...
  17. So the compiler turned into a complainer? LOL...

    So the compiler turned into a complainer? LOL sorry I had to add that. Thanks for the help!
  18. OK, so I started implementing whiteflags's idea....

    OK, so I started implementing whiteflags's idea.
    here's my List.h:

    typedef unsigned long list_index_type;
    class DLListNode{
    public:
    class DLListNode...
  19. Actually, I will start using your idea white. See...

    Actually, I will start using your idea white. See where it leads me. Thanks :)
  20. First, I have to admit I am not very familiar...

    First, I have to admit I am not very familiar with classes yet. I understand this can well be answered as "well, be then!". So let me tell you exactly why I started all this and, if your solution...
  21. It is very, VERY fortunate for me that I (think...

    It is very, VERY fortunate for me that I (think I) DID get it to work. Still, I have questions so that I can both expand my understanding of the language ADN possibly make it look neater. Here we...
  22. Struct member NAME as parameter to function - how to?

    Hello all. My question has to do with lists.

    [LIST EXPLANATION]For the ones who don't know, a list is a set of structs. These structs contain a pointer to the "next" struct, sometimes also to the...
Results 1 to 22 of 22