Search:

Type: Posts; User: MortalMonkey

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    3,490

    Not present by default anywhere in 98SE other...

    Not present by default anywhere in 98SE other than the sample files (.SAM), you may however create one directly in the windows folder.
  2. Thread: void?

    by MortalMonkey
    Replies
    22
    Views
    2,274

    A challenge, just for fun: Make a function that...

    A challenge, just for fun:
    Make a function that behaves exactly like a variable.
  3. Excluded actually, since bInterecting is false...

    Excluded actually, since bInterecting is false when the if condition is true.
  4. Well, it's easy enuff in concept, innit? if...

    Well, it's easy enuff in concept, innit?

    if ((dist > rad1 + rad2) || (dist < abs(rad1 - rad2)))
    bIntersecting = false;
    else
    bIntersecting = true;
  5. Circles are great. They're real easy to...

    Circles are great. They're real easy to calculate, and are the average shape of all objects at all angles.
    No wonder they're so popular in game physics.
  6. Replies
    19
    Views
    3,945

    There are many ways to store a tree, here's one:...

    There are many ways to store a tree, here's one:
    Store them in clumps of three, first the current node ID, then the left node ID, then the right node ID.

    This tree

    A
    / \
    B C
    / ...
  7. Replies
    36
    Views
    3,571

    If the numbers are only going to be unsigned...

    If the numbers are only going to be unsigned single digits (0 to 9), there's a much simpler answer:

    blah += '0' + a;
    If they are not, this method will bring much WeirdStuff™.
  8. Replies
    28
    Views
    2,812

    You could probably also achieve a desirable...

    You could probably also achieve a desirable effect with a stack-smashing hax. I'm thinking something along the lines of allocating some mem that you inject with deletion instructions, then hack a...
  9. Replies
    21
    Views
    2,429

    Personally I think pointers are so confusing...

    Personally I think pointers are so confusing because every reference say they are, or hint at it in some or other way.

    Yeah, a pointer is like a bookmark, or a note with the pagenumber on it.
  10. Replies
    8
    Views
    1,221

    Apparantly, that only applies to CODE tagged code...

    Apparantly, that only applies to CODE tagged code :p
  11. Replies
    8
    Views
    1,221

    Here's a hint : You can print as many asterisks...

    Here's a hint : You can print as many asterisks as you want, they all end up on the same line* - that is, untill you print a newline character.


    *Technically anyway, the console does wrapping...
  12. Replies
    4
    Views
    924

    http://www.wotsit.org/search.asp?s=graphics

    http://www.wotsit.org/search.asp?s=graphics
  13. Replies
    35
    Views
    3,855

    No. It's not very portable.

    No. It's not very portable.
  14. Replies
    35
    Views
    3,855

    There's a hundred and one ways to install...

    There's a hundred and one ways to install something on someone's computer once you got access to place a script or executable anywhere.
    And to be quite frank, Replacing Pause.exe is right down...
  15. Replies
    35
    Views
    3,855

    Well, if you first got to replace pause.exe with...

    Well, if you first got to replace pause.exe with your spyware installer, you could just as well put it in the Startup folder.
    Besides, with the amount of batch files I've written for various...
  16. Replies
    20
    Views
    14,958

    Right, thanks.

    Right, thanks.
  17. Replies
    20
    Views
    14,958

    I've seen this a lot, but shouldn't it be if...

    I've seen this a lot, but shouldn't it be

    if (!in)
    {
    cerr << "Unable to open input file" << endl;
    if (out)
    out.close();
    return EXIT_FAILURE;
    }
    if (!out)
  18. Replies
    25
    Views
    6,463

    Only in UnrealScript. I'm starting to mix up the...

    Only in UnrealScript. I'm starting to mix up the languages, it seems.
  19. Replies
    35
    Views
    3,855

    On the other hand though, EXIT_SUCESS and...

    On the other hand though, EXIT_SUCESS and EXIT_FALIURE doesn't say anything about what type of variable and what value it has, nor does it help any that they are declared elsewhere. Combine that with...
  20. Replies
    25
    Views
    6,463

    Not really. The easiest method is switch...

    Not really. The easiest method is

    switch (true)
    {
    case (test == "hey"):
    DoSomething();
    break;
    case (test == "bye"):
    DoSomethingElse();
    break;
  21. Replies
    14
    Views
    1,215

    I'm just competing for the Most Crap In Fewest...

    I'm just competing for the Most Crap In Fewest Lines Award :p
  22. Replies
    12
    Views
    2,043

    Well, 0xEE == 0x00EE, as opposed to 0xEE00.

    Well, 0xEE == 0x00EE, as opposed to 0xEE00.
  23. Replies
    14
    Views
    1,215

    #include using namespace std; void...

    #include <iostream>
    using namespace std;

    void strformal( char *str )
    {
    int i;

    for (i = 0; str[i] != '\0'; i++)
    if ((str[i] >= 'A' && str[i] <= 'Z') || (str[i] >= 'a' && str[i] <= 'z'))...
  24. Replies
    12
    Views
    2,043

    The local fstream tutorial isn't exactly indepth...

    The local fstream tutorial isn't exactly indepth on i/o stream functions. So while I was still stuck with getch(ch), I wrote this function:

    string itox( unsigned int i )
    {
    char x[7] = "000000";...
  25. Replies
    6
    Views
    1,371

    You might want to let the functions take the...

    You might want to let the functions take the floats independently, or even use structs, so you don't accidentally pass an undersized pointer/array and get GPFs. Also, if you name them appropriately...
Results 1 to 25 of 38
Page 1 of 2 1 2