Search:

Type: Posts; User: Blackroot

Page 1 of 16 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,226

    Blahhh; hate to bump this but my workaround...

    Blahhh; hate to bump this but my workaround doesn't work t-t. I can't figure out a single way to initialize a list of members without actually making a linked list; I can't even figure a way to use...
  2. Replies
    7
    Views
    8,446

    Sort of; you drag it so it fills an array of...

    Sort of; you drag it so it fills an array of points on the covering the whole screen. So if you have a 10x10 grid; you'd fill points [0], [10], [20]... ect with the same point (So you really only...
  3. Replies
    7
    Views
    8,446

    Unfortunantly I don't have my old code with me...

    Unfortunantly I don't have my old code with me but the logic is really simple.

    I broke apart my window into a grid and wrote a bunch of random floating point numbers into a file - one for each...
  4. Replies
    9
    Views
    972

    You're repeatedly opening the file which dumps...

    You're repeatedly opening the file which dumps the content. Either open the file once or use


    file.open(filename, ifstream::in);


    Also; you never close the file.

    You may also consider...
  5. Replies
    4
    Views
    1,226

    I always thought C++ compiled types before...

    I always thought C++ compiled types before declarations; but I'm not really well versed in how it's compiled. If that's the case - do you have any recomendations on how to do this? I'd like to avoid...
  6. Replies
    4
    Views
    1,226

    Static array of initialized members?

    Probably not the best description; I'm building a simple class structure for my tokenizer and I want all initialized members of the class to be put into an array.

    Unfortunantly; my compiler is...
  7. Replies
    2
    Views
    880

    OS 'Compiler'?

    Hey there - I'm working on a small game of mine and I'm considering making an event-driven scripting system. However; I'm having alot of trouble parsing the code efficiently. Right now it's just a...
  8. Replies
    2
    Views
    1,066

    Working with void*

    Hey there; I've been working on a really simple class for a void pointer linked list. I'm looking for a way to deal with having to convert to void* and then back to whatever type I'm using. For...
  9. Replies
    4
    Views
    1,184

    int Update (Planet *pEarth, SDL_Surface *Red,...

    int Update (Planet *pEarth, SDL_Surface *Red, SDL_Surface *screen)
    {
    int distance;
    int forceX;
    int...
  10. Replies
    3
    Views
    1,756

    Without code any help would be shots in the dark.

    Without code any help would be shots in the dark.
  11. Replies
    11
    Views
    1,536

    Signed values are numbers without the ability to...

    Signed values are numbers without the ability to contain negative values. Unsigned values have this ability. Are you saying that the program is returning only positive values when it shoulden't be?
  12. Replies
    5
    Views
    1,147

    -Thanks for pointing that out, I always forget...

    -Thanks for pointing that out, I always forget length returns the full size including terminator.

    ~And I'm not sure I fully got your second question. What should happen in case a is:

    foo(x,...
  13. Replies
    5
    Views
    1,147

    I return "" at the end because if the delimeters...

    I return "" at the end because if the delimeters are not found it should not return any data to me (It would confused my parser otherwise)

    What was happening was not that it wasn't returning, but...
  14. Thread: 1=0.

    by Blackroot
    Replies
    61
    Views
    7,103

    You aren't dealing with a technical infinity...

    You aren't dealing with a technical infinity (.99999999999->) VS 1.(000000->). Although a large technicaly 9 != 10 therfore .9 != 1. You can just say a number is *.(infity zeros)1* larger then it is...
  15. Replies
    5
    Views
    1,147

    String search not returning correctly?

    Well it was bound to happen eventualy, after writing and rewriting my program I have something solid. But I have a minor problem ~ My parser is not returning correctly. I have made it so it will...
  16. Thread: 1=0.

    by Blackroot
    Replies
    61
    Views
    7,103

    #define 1 0 Haha... HAHAHAHAHA! Take that...

    #define 1 0


    Haha... HAHAHAHAHA! Take that LOGIC! /dance.
  17. Replies
    9
    Views
    1,180

    What seems to be happening is you are passing i...

    What seems to be happening is you are passing i (which is not a pointer) to your function which is now interpreting it as a reference. What is passed back is actualy the _address_ of i, which is then...
  18. Replies
    9
    Views
    1,740

    (I think) He wants to get text from an...

    (I think) He wants to get text from an application which is not related to his. I dont know of any basic API function for this, you'd probably need some sort of hook to intercept the text flowing to...
  19. Replies
    0
    Views
    1,031

    Open File/Save File crashes on cancel?

    OMG I'M STUPID >.<.

    Had my function returning only if the function returned 1. >.<
  20. Replies
    5
    Views
    1,221

    Passing a plain pointer to the function allows...

    Passing a plain pointer to the function allows the function to alter the pointer's value.

    Passing &pointer to a function tells the function it's not alloud to change the value of the pointer, only...
  21. Replies
    2
    Views
    1,031

    Bah! I knew that pesky thing was somewhere....

    Bah! I knew that pesky thing was somewhere. Thanks, I didin't even realize I needed a break; after it.

    ~I indent with 1 space as a sort of bad habbit, the first time I ever got into coding I was...
  22. Replies
    2
    Views
    1,031

    Application closing by default?

    I seem to be having a simple problem with an application I made. It's just a window with a text box and a couple of straightforward text application things. ~The problem is, any action I preform...
  23. Replies
    14
    Views
    1,554

    File->Save as-> Filename.h Headers are the...

    File->Save as-> Filename.h

    Headers are the same as .cpp files except they do not include a 'main' statement.

    This is a valid header file:



    int Thing(int a) {
    return a - 1
  24. Replies
    3
    Views
    2,046

    Reading/Writing an Excel Spreadsheet?

    I'm decently sure there's no built-in operation for this, but is there a way to read & write to an excel spreadsheet? It probably uses some type of custom language for images and such, but there is a...
  25. Replies
    4
    Views
    1,141

    Very comprehensive responses, thanks! That was...

    Very comprehensive responses, thanks! That was everything I needed to know :).
Results 1 to 25 of 383
Page 1 of 16 1 2 3 4