Search:

Type: Posts; User: Swordsalot

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    994

    Thanks. Just want to say, I acknowledge that...

    Thanks.

    Just want to say, I acknowledge that any worthwhile book covering the things I wanted will include plenty of rehashing of the things I already know (I'm not going to find a useful book...
  2. Replies
    8
    Views
    994

    Best way to (re?)learn c++

    G'day all,

    Just a bit of background. I have been programming in Qbasic for about 12 yrs, and then through uni (about 8 yrs ago) did a semester of introductions to C (although had also self-taught...
  3. Replies
    4
    Views
    1,443

    Grrr, my mistake. It seems the code I posted...

    Grrr, my mistake.

    It seems the code I posted was correct. It was the haphazard way I was testing it that was the problem. I was defining the 'PhysObj's in temp variables, then adding them to a...
  4. Replies
    4
    Views
    1,443

    A vector of structs problem

    Hello all,

    Trying to work on some code - a struct with spring variables is loaded into a vector in an insert function, but the vector is empty in later functions. I suspect it has something to do...
  5. Replies
    2
    Views
    3,014

    Compile errors in stl header files

    Hello,
    Writing my program, went to compile. Fixed all my own compile errors, then found another batch complaining about the stl libraries.


    istringstream sin;
    sin.str(curword);
    GLfloat pt[3];...
  6. loading from a file (easy, noobie question)

    hello all,

    I'm trying to write a program that loads numbers / strings from a file. It's for loading a 3D model, so contains a lot of numbers (for points) and tags (strings) saying what the numbers...
  7. Replies
    15
    Views
    4,324

    ** smacks head on desk ** That's genius. I...

    ** smacks head on desk **

    That's genius. I changed the particles to a list, and can't believe the speed increase I got for it. I left the emitters as a vector, since there are far fewer of them...
  8. Replies
    12
    Views
    1,556

    maybe more of the grid is '2' than 1. It looks...

    maybe more of the grid is '2' than 1.

    It looks to me like there's nothing stopping the recursive theoflood from continuously searching into negative values of x (or y). If it keeps hitting 'val'...
  9. Replies
    15
    Views
    4,324

    Oh my god, that delete is slow :( Thanks, the...

    Oh my god, that delete is slow :(

    Thanks, the code you showed me works. It's just that in a vector of 12,000 or so particles (once it reaches a 'steady state'), it feels like there's far too much...
  10. Replies
    15
    Views
    4,324

    thanks for the help so far. I fixed up that bit,...

    thanks for the help so far. I fixed up that bit, and found where the problem was. The problem is when I delete a particle or emitter, it crashes. It looked like the problem was in the creation of the...
  11. Replies
    15
    Views
    4,324

    I just did some more testing and found that...

    I just did some more testing and found that 'it.lastcreated' isn't being updated. I suspect I have at least got that bit wrong.
  12. Replies
    15
    Views
    4,324

    help using vectors with structs

    Hello all,
    I'm trying to get back into C++ programming, after a few years of Java (damned uni). I am particularly trying to use STL and classes, which i hardly used before (I guess java showed me...
  13. Replies
    4
    Views
    1,646

    Bangs head: yes, the nummonsters was 1 larger...

    Bangs head: yes, the nummonsters was 1 larger than the last element. Thanks for that :D

    Also, every time I use '.' in place of '->' things just stop working. I prefer '.', but it doesn't seem to...
  14. Replies
    4
    Views
    1,646

    Assigning objects to objects

    I get a fatal error when the following lines are run. foe is an array of objects (representing monsters in a game I'm making), nummonsters is the number of monsters in that array. When they are...
  15. Replies
    4
    Views
    2,209

    OK, I think I get it. For some reason I...

    OK, I think I get it.

    For some reason I thought there was a much larger gap between OO and procedural. What I am doing is basically procedural: with the main function calling all the other...
  16. Replies
    4
    Views
    2,209

    Sending 'Messages' between objects

    Hey.

    I know one of the great advantages of OO is the ability for objects to communicate with each other. In the past, I have not managed to do this: instead I just have each method called from...
  17. Replies
    7
    Views
    1,428

    I like the look of that 'terminating a process by...

    I like the look of that 'terminating a process by name' thing, but I don't think it works in this instance since Winspy can only look at visible windows (whereas I'm looking to shut down hidden...
  18. Replies
    7
    Views
    1,428

    I think that article has most of the functions I...

    I think that article has most of the functions I need, however I still can't work out how to get a handle on an external process. Most of the microsoft API seems to assume you already have this...
  19. Replies
    7
    Views
    1,428

    Want to end a few processes

    Hey,
    been programming for years but never done a windows program. I have had a few problems with pairs of processes that keep opening each other when I close one of them. Basically, they are very...
  20. Thanks for the help guys, that worked a treat :D

    Thanks for the help guys, that worked a treat :D
  21. Does declaring classes in the wrong order matter?

    I have 2 classes, and within each there is a mention of the other. In the code, one of them will always have to appear above the other, and when that happens I get errors.


    class controltype {
    ...
  22. Thread: VGA help

    by Swordsalot
    Replies
    12
    Views
    2,158

    I know VGA is pretty useless and has no future,...

    I know VGA is pretty useless and has no future, but I'm interested in it because of the dodgy look it gives. Reminds me of my good old days of mario and commander keen. I've considered learning...
  23. Thread: VGA help

    by Swordsalot
    Replies
    12
    Views
    2,158

    Thanks for the help. I'm searching for Turbo C++....

    Thanks for the help. I'm searching for Turbo C++. Found a copy at borland's website, installed it, and it didn't have an executable file. I guess I'll keep searching.

    That's really annoying:...
  24. Thread: VGA help

    by Swordsalot
    Replies
    12
    Views
    2,158

    Not sure what you mean by 'tags', but as for the...

    Not sure what you mean by 'tags', but as for the other stuff:

    using the latest version of DevC++. The compilation errors are:



    11 D:\Dev-Cpp\pixelprog.cpp `_AX' undeclared (first use this...
  25. Thread: VGA help

    by Swordsalot
    Replies
    12
    Views
    2,158

    VGA help

    I'm having some trouble following the VGA tutorials on this site. I get all sorts of compiler errors whenever I try the following program:


    #include <iostream> // Included lots of includes just...
Results 1 to 25 of 25