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...
Type: Posts; User: Swordsalot
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...
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...
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...
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...
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];...
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...
** 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...
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'...
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...
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...
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.
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...
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...
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...
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...
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...
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...
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...
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...
Thanks for the help guys, that worked a treat :D
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 {
...
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...
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:...
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...
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...