Search:

Type: Posts; User: Sparrowhawk

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,123

    Maximizing a window any time ?

    How can I maximize any window in WIN XP any time? Not on any specific event, but just any arbitrary time I specify I want to be able to maximize whatever window I'm handling.

    I know about hooking,...
  2. Ok adding onto this... I want to do a fill tree...

    Ok adding onto this... I want to do a fill tree function that takes an input file and reads in keys and gpas from it. But datanode (which defines the struct with keys/gpas) is in my main and this...
  3. I suppose that makes a lot more sense. :D ...

    I suppose that makes a lot more sense. :D

    Question... Is the only difference between preorder and inorder traversal of a BT, that in preorder you want to hit the root first then everything else in...
  4. Got it but now I've got another error, here's the...

    Got it but now I've got another error, here's the implementation:


    template <class Entry>
    Binary_node<Entry>::Binary_node(const Entry &x)
    {
    left=right=x;
    }
  5. Templates + ref to pointer + linker error.

    header/cpp file combined in .h file since using templates:

    template <class Entry>
    struct Binary_node
    {
    Entry data;
    Binary_node<Entry> *left;
    Binary_node<Entry> *right;
    Binary_node();...
  6. Replies
    7
    Views
    1,404

    Yeah I see where you're both going with this......

    Yeah I see where you're both going with this... and btw Vart you nailed it, that worked like a charm.

    I just need to think about it for awhile I guess. The whole using a temp variable thing is...
  7. Replies
    7
    Views
    1,404

    Having no returns anywhere in the program is...

    Having no returns anywhere in the program is whats hanging me up, and the fact that you can't call it like you can with a return type because you can't make the call I noted in the original post when...
  8. Replies
    7
    Views
    1,404

    I need to write it intentionally without the...

    I need to write it intentionally without the return type.
  9. Replies
    7
    Views
    1,404

    Ackermann Function w/ a twist.

    function header:

    void acker (int m, int n, int &result)

    There's no return type so I can't return things for each recursive call... Instead I need to use result somehow to hold the final value....
  10. Replies
    5
    Views
    1,478

    Just gonna throw in my guess here... It...

    Just gonna throw in my guess here...

    It probably has to do with precedence. Without the parentheses and brackets it could be a function call with argument &N even if it doesn't make sense to us...
  11. Replies
    18
    Views
    3,010

    Here you go Don, try this code out, compile and...

    Here you go Don, try this code out, compile and run it and you should see the problem :)


    #include <stdio.h>
    #include <conio.h>
    #include <string.h>
    #include <limits.h> /* for CHAR_BIT */...
  12. Replies
    18
    Views
    3,010

    Hmm you're definitely right about that I don't...

    Hmm you're definitely right about that I don't know how I got 1.625 from 18+8-1/8... With respect to the rest of what I wrote though, it's pretty irrelevant but I meant more "it doesn't do what he...
  13. Replies
    2
    Views
    8,690

    Ah yes I understand the quick start example...

    Ah yes I understand the quick start example pretty well. I was looking at strictly C++ documentation on the site I think I might of skipped over that bit because I can definitely understand what is...
  14. Replies
    2
    Views
    8,690

    C++ & Sqlite3

    After I made a post asking about databases someone pointed me to Sqlite3 which I'm very interested in trying...

    But the documentation is a bit sparse for a beginner to simply understand...

    I've...
  15. Replies
    26
    Views
    21,008

    Somewhat related to this thread: ...

    Somewhat related to this thread:

    http://kotaku.com/5143550/mario-explains-relationships-for-us

    I found that pretty humorous :D
  16. Replies
    6
    Views
    2,449

    I just saw this, very interesting... Yes you're...

    I just saw this, very interesting... Yes you're right, your method is much better. Can I find a list of system specified values like that one somewhere? I'm definitely interesting in knowing all of...
  17. Replies
    6
    Views
    2,449

    Hmm I'm not sure if I understand what it needs to...

    Hmm I'm not sure if I understand what it needs to do exactly...

    If you just want the random number to be equal to or below 40 everytime... Put in a loop to keep randing until you get a suitable...
  18. Replies
    18
    Views
    3,010

    Well there are more problems... The main one...

    Well there are more problems... The main one being that stuff like:

    #define BITNSLOTS(nb) ((nb + CHAR_BIT - 1) / CHAR_BIT)


    causes undefined behavior... Because your dividing an int... Thus...
  19. Replies
    18
    Views
    3,010

    Haven't looked it over but I noticed this: ...

    Haven't looked it over but I noticed this:

    #include <combination.h>

    it looks like this is a homebrew header file you made yourself?

    the syntactically correct way is:

    #include...
  20. Replies
    9
    Views
    2,830

    I'm just gonna leave a simple: Google is your...

    I'm just gonna leave a simple: Google is your friend! here ;) Found in about 10 seconds:

    http://www.translatum.gr/dictionaries/download-english.htm

    What's particularly amusing is you somehow...
  21. Replies
    18
    Views
    3,791

    Throwing in structs and pointers is jumping the...

    Throwing in structs and pointers is jumping the gun quite a bit here, no? This person is on their first program... While structs and pointers are wonderful things, they aren't the right thing to put...
  22. Replies
    1
    Views
    1,768

    A few things are wrong with this... I've never...

    A few things are wrong with this... I've never heard of "calling main" if it some how has been returning to main I believe it is a bug. What you should do is loop. Looping is very easy and very...
  23. Replies
    8
    Views
    2,016

    True enough. It's quite early where I am, just...

    True enough. It's quite early where I am, just woke up so I'm not of completely sound mind yet. :p
  24. Replies
    8
    Views
    2,016

    I thought so too, and my compiler wouldn't hear...

    I thought so too, and my compiler wouldn't hear of it... So I tried googling passing class objects by reference and just found a lot of ambiguous stuff... So I gave up on that idea, but I tried it...
  25. Replies
    8
    Views
    2,016

    bump still looking for the answer here... added...

    bump still looking for the answer here... added the header files I forgot to put in earlier.
Results 1 to 25 of 98
Page 1 of 4 1 2 3 4