I have been Googling for this and searching the forums, but everything I find seems to be about USING DLLs, I was interested in learning to make them. Dev C++ has a DLL setting for projects, I simply...
Type: Posts; User: tol
I have been Googling for this and searching the forums, but everything I find seems to be about USING DLLs, I was interested in learning to make them. Dev C++ has a DLL setting for projects, I simply...
Ok, I *thought* I had this, but something went horribly wrong. :(
I am trying to straighten this mess out, but now I get errors.
Multiple definition of `Dice::_______ for ALL methods.
...
I guess I should have figured that was childish at best. I was just kind of stuck with "I have a random from 0 to someReallyHugeNumber" and that seemed like a quick way out. Noted.
Hrmm, I suppose it is kind of crazy looking. I apologize to everyone trying to read it, I will try to clarify and edit it as soon as I have time. And no, it doesn't seem silly at all. This stuff is...
I wrote a class for simply creating sets of dice, and rolling them. This could obviously be pretty useful for anything involving dice. I also have the concept of an open-ended roll, which is simply a...
A Vector eh.... *Googles like mad*
http://hge.relishgames.com/ is very easy to use and friendly for full screen "game" style graphics. For GUI do WIN32.
As far as using Haaf's, you might have to look up simple double buffering, as...
I keep running across tutorials on how to make a function take a variable number of arguments as in myFunction(Arg1,...), where it will take any number of Arg1s. However, I have a function where it...
So it's kind of like the "Why not use Goto" question: it simply won't be an issue if I make my objects properly :D
I have been following some good tutorials, combined with advice from here, and have gotten pretty far. However, I can't seem to track down a bit of information(or I am mistaken and it can't be done...
You know, that has always made me want to try ASM. Most people tell me not to bother with ASM, but it occurs to me that since ASM is nearly 1-to-1 with machine code, you could actually move around...
I have a function set up so that it receives a function pointer, and that works:
#include<iostream>
//-----------------
//--My NODE class--
//-----------------
class Node
{
Wow, that seems to compile, thanks
The compiler seems to like that even less :D Still, thanks for the help anyhow.
Thanks! The current state of my code is:
class Node
{
private:
static Node * root;static Node * index;Node * next;
char content;
public:
Ok, I got the struct and class version working. All well and good on that, that will be good for what I am going to need it for. Now I am trying my other method just because I am interested, and...
This might seem overly picky, but wouldn't putting the int declaration inside the for loop technically be slightly superior because of scope?
#include <iostream>
class myNodeList
{
private:
struct myNode
{
char value;
myNode * next;
};
Dev C++ here too. Let me know if you find out, and I'll do the same.
Well, I have another problem. As I said before, I am trying to build up to using a FOR...EACH...NEXT style, and I am taking...
Ah ok. Now that makes more sense with New and Delete. So what it boils down to is that my variable is actually an entire myNodeList object, and not just a type of pointer to it.
This is the...
Thanks, figured that out a split second before I read your post. I need to get the assumptions beat out of me on stuff like that.
I need some constructive criticism, if any, on my destructor as I...
I have gotten a lot further, and I appreciate the help. This is definately something I needed to do. Special thanks for the bit about initializing Static members, even though it no longer applies to...
Hello, I am new here(but I have lurked off and on). I finally decided to post about this. I was trying to get used to using linked list type structures and was trying to make one, but I did something...