April 6th, 2011, 04:42 PM
I moved it from here:
#include <iostream>
class Enemy
{
public:
April 6th, 2011, 03:34 PM
I am used to another forum that uses that tag. Where do I move srand to so that it still generates a random number every time?
April 6th, 2011, 02:49 PM
Ok. I figured out the first question I asked. Now I am onto the method.
I want to change:
[C++]
int Enemy::attack()
{
int hit;
srand(time(NULL));
April 6th, 2011, 06:13 AM
Ok, I am a bit confused. How do I make a derived class from this:
#include <iostream>
class Enemy
{
public:
March 9th, 2011, 03:59 PM
Umm. That doesn't really help much. Explain a bit further please?
March 9th, 2011, 06:34 AM
Yes, I do want a GUI. With a basic white background and the words to be in a corner as a chat type thing.
March 8th, 2011, 07:51 PM
I keep getting this error whenever I compile my program. I am using XCode and am not sure of what to do or how to fix this error.
#define TIMER_H_DEF
#include <iostream>
#include <string>...
March 8th, 2011, 05:50 PM
Thanks. That seemed to fix it. But do you know how to make my code into an application? Or is that too complicated for you to tell me?
March 8th, 2011, 04:21 PM
I am new to programming and don't know what is wrong. I've tried to fix it for about a day now.