Thank you for the clarification!
As far as posting the code, I wouldn't feel comfortable posting the code here as none of it is mine. Even though the program is freely available at a particular...
Type: Posts; User: bulletbutter
Thank you for the clarification!
As far as posting the code, I wouldn't feel comfortable posting the code here as none of it is mine. Even though the program is freely available at a particular...
A little bit of a backstory....I am making a program in Visual Basic. The program basically opens up a compressed archive, finds a file inside it and then I THINK it modifies some data at a byte...
Thanks, that did it.
What exactly is that?
#include "stdafx.h"
#include "Player.h"
#include <iostream>
#include <string>
using namespace std;
int main(){
string name;
I don't know if thats the right way to put it. I have it game set up the following way
int main(){
game rungame;
rungame.start();
return 0;
}
I am not sure what you mean as I don't know what it does.
I changed my code a bit. I removed setPlayerAbilties and just declared the array as a private variable but gives me errors about...
I was starting to think that. I tried modifying setPlayerAbilities to return the array but failed miserably and it really doesn't seem like a great idea.
Would doing away with setMageAbilities()...
I am having problems trying to output a string thats in an array. There are three member function of a class that I am trying to use to get this done.
The first is setPlayerAbilities() which...
Sorry you went through all that trouble over a misplaced bracket. I feel bad now :(.
I am coming back from like a 2 year programming break and I am making this little program to springboard myself...
Woah, woah...let me see if I understand what you said.
Class's should not print text UNLESS I'm using a "game" class? Why shouldn't class's print text? I am just asking cause I have a game class...
doh...misplaced }
only took me 4 hours to figure it out
Needing help with my text rpg again. I have two classes that I am using to check and assign which decision a user picks. They have 2 choices (warrior or mage). If they choose mage some text is...
cool thanks
I removed displayname() and just used getname() and it worked great when I plugged it into my compiler.
I need to be able to use a private class variable in several cout statements. I need to do something like this..
cout <<"Hello " <<Person.displayName() <<"how are you today" <<endl;
but...
do I have to put
time_t seconds;
time(&seconds);
srand((unsigned int) seconds);
in each member function of my class that uses rand()?
I am wanting to generate a random number from inside a member function of a class thats located in its header file.
My question is..where do I put the #include <time.h> and the needed variables...
Thanks for all the replies. To be honest I have little to no experience with vectors so I will stay away from those for now. And most of what you guys said was way over my head.
I ended up doing...
Well I am kinda brainstorming this whole thing so I will just post the parts of the code I have....I know its messy and prolly wont compile but I am just trying to get it down on paper before I hit...
In a member function of my class I made a string array. In a different member function (same class) I need to be able to read that array. I did a quick search here and didn't find anything, google...