Search:

Type: Posts; User: IceDane

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    3,297

    Why not just modify it by adding an additional...

    Why not just modify it by adding an additional check that checks if it is the solution you are looking for? If that function returns true, return prematurely.
  2. Replies
    5
    Views
    5,262

    You simply loop through the tree, going down left...

    You simply loop through the tree, going down left or right as the data you want to insert dictates, until you find a 0-node. Then you create it and insert the data.
  3. Replies
    7
    Views
    1,639

    Would you ask a mechanic to fix your broken car...

    Would you ask a mechanic to fix your broken car without showing up with your car?

    Where is your code?
  4. Replies
    26
    Views
    2,462

    Do you really think that, after asking the...

    Do you really think that, after asking the question you just asked, you're in a position to be telling other people that what they're saying is wrong?

    Those functions, in libraries(All of the...
  5. Thread: SSH attacks

    by IceDane
    Replies
    15
    Views
    2,315

    Yes, except it uses iptables(afaik) and it's...

    Yes, except it uses iptables(afaik) and it's automated. What's your point?



    Not really. The security is dependent on the strength of the ssh daemon(e.g. whether it has exploitable bugs), its...
  6. Thread: SSH attacks

    by IceDane
    Replies
    15
    Views
    2,315

    Lookup fail2ban. Nifty solution for exactly what...

    Lookup fail2ban. Nifty solution for exactly what you want to do.

    Here's a bash script I like to use to parse my auth.logs for attacks.



    #!/bin/bash

    printf "Username stats:\n"
    grep...
  7. Replies
    32
    Views
    4,153

    Surely you mean: struct employee { ...

    Surely you mean:



    struct employee
    {
    int id_number;
    char name[255];
    int age;
    float salary;
  8. Replies
    9
    Views
    2,120

    There is no standard STL string tokenizer. Your...

    There is no standard STL string tokenizer. Your only option is to write one yourself(Using STL stuff if you prefer) or use someone else's.
  9. Replies
    7
    Views
    24,650

    The addresses of your variables. You should go...

    The addresses of your variables. You should go read about pointers and how to use them again and then take a good look at your code.
  10. Replies
    21
    Views
    2,915

    It may seem he's telling you to not use...

    It may seem he's telling you to not use composition(The has-a relationship), but if you think about it, when you derive from all the classes MainApp derives from, the functions it inherits are...
  11. Replies
    11
    Views
    2,035

    Cool. What have you done so far?

    Cool.

    What have you done so far?
  12. Replies
    21
    Views
    2,915

    Hahaha. That is without a doubt the best...

    Hahaha.

    That is without a doubt the best programming-related analogy I have ever heard. I'm going to be forced to steal that one.
  13. Replies
    13
    Views
    10,639

    The reason not to use goto is not because you're...

    The reason not to use goto is not because you're not supposed to write iterative code - it's because almost everything can be solved without using goto, and the things that can't are often strange...
  14. Replies
    8
    Views
    2,319

    Might I ask what library it is you are using to...

    Might I ask what library it is you are using to do the graphing in, in C++?
  15. Replies
    2
    Views
    5,007

    Keeping track of STL container memory usage

    The topic says most of it.

    I'm having fun with various algorithms and their performance, and I've written a handler class that runs the various algorithms and displays statistics afterwards.

    I...
  16. Replies
    3
    Views
    964

    Don't use goto, ever. There is no problem that...

    Don't use goto, ever. There is no problem that cannot be solved without it, and it should be used as it creates spaghetti code that is near impossible to follow.

    Take a look at your own code. I...
  17. Replies
    36
    Views
    8,761

    Memory Leak Detection Enabling...

    Memory Leak Detection Enabling
  18. Replies
    20
    Views
    4,139

    Probably not efficient, as it's roughly O(n^2) as...

    Probably not efficient, as it's roughly O(n^2) as far as I can see.
  19. RFC 1459...

    RFC 1459

    Your code is not indented at all. Indent it and post it again.

    recv blocks by default. If you try receiving data when there isn't any, it just hangs, waiting for it.

    I've written...
  20. Replies
    2
    Views
    3,126

    Thank you very much. Even though that was not...

    Thank you very much.

    Even though that was not what I was looking for when I wrote the original post, it is now.

    I filled in the blanks of the design, and found out that it came together...
  21. Replies
    2
    Views
    3,126

    Game Engine Design

    I have written a few small hobby-ish games in SDL and SFML, but I haven't really spent much time on thinking about the design. It was all just for ........s and giggles.

    I've began writing a...
  22. Thread: VC++ or DevC++

    by IceDane
    Replies
    10
    Views
    1,716

    Have you not read your own link? That is only an...

    Have you not read your own link? That is only an extension to Dev-C++ for creating GUIs using wxWidgets visually.. It has nothing to do with Dev-C++ itself.
  23. Thread: MSVC 2005 bug?

    by IceDane
    Replies
    4
    Views
    1,588

    That right there is the reason why every...

    That right there is the reason why every programmer has heard a newbie ask "What do I need to know to 'learn the windows API'?"

    All the macros, and typedefs and so on, almost make for a whole new...
  24. Replies
    18
    Views
    2,155

    As far as I can see, and have seen, when writing...

    As far as I can see, and have seen, when writing apps for windows using Visual Studio with debug config, all vars are filled with 0xCC, not 0xcd, but obviously, that is an irrelevant detail.
  25. Replies
    7
    Views
    1,742

    Or, in the case of dynamic linking which is...

    Or, in the case of dynamic linking which is probably more commonly used these days, doesn't need to load the library at boot.
Results 1 to 25 of 482
Page 1 of 20 1 2 3 4