ok i did the little random system thing but now everything always equals 0
#include <iostream>
#include <cstdlib>
#include <string>
#include <time.h>
using namespace std;
Type: Posts; User: SebastionV3
ok i did the little random system thing but now everything always equals 0
#include <iostream>
#include <cstdlib>
#include <string>
#include <time.h>
using namespace std;
haha i have no idea what you just said
How do I make their str, def, sstr and so forth random as if they were rolling dice and the set numbers are the max they can roll and 0 is the lleast?
#include <iostream>
#include <cstdlib>...
no i have char command[15]; which is what i was using as the string but appearntly it wasnt working so do I still need it?
ok i fixed it thanks everything works now i just need to integrate the random so everything will make sence and not be pointless
what did you do??
I just put string command; and it fixed that problem i post the new problem in a sec
nevermind i fixed it but now it doesnt do something else its supposed to do
If needed I can add the full program so you can look at it all
alright my code works perfectly and it runs but my only problem is that whether or not i input the proper responce it always does the else statement
void Character::Command()
{
...
mmm sounds good let me check this out
see thats what i was thinking since its in the loop its going to repeat anyways but i have no idea how to fix something like that
about 6 out of 10 it misses and then the next time around it repeats the same responces
ok when you start it up, the first responce you get is what you contnue to get. its not always the same thing when you start the program but about 90% of the time you get the same responce
How would I check for a negative value?
My number are barely randum at all, if you run the program you pretty much get the same responce every time.
First off, heres my code.
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <time.h>
using namespace std;
i dont understand this one, its working the program runs but not all of the code runs. it states the first two lines then quits out on me.
#include <iostream>
#include <cstdlib>
#include...
yeah no problem it would probally be easier if we didnt through some other means than on here but yeah that would be great. What im working on now is just like the prototype, im still learning c++...
oh nevermind sorry
its still doing the same thing
im sorry about this , I just cant get anything to particapte with me. Its not taking out the points from the hit points like its supposed to so even after the attack its still 100
#include...
alright thanks yeah i had to use that in my death clock
my random number generators arent exactly coming up random ive gotten one everytime ive done it
ok nevermind i forgot to type in get.ignore(); after my input sorry about this, having a rough couple of days and cant think straight
ok im just not having a good day
i fixed that which is a mistake i shouldnt of made but now instead of saying the final cout and telling me how much damage it did make it just ends the program
ohhhhhhhh i didmt even realize thats what i did sorry thanks