I tried removing the ".h" from the iostream but then I get a whole bunch of errors. I didn't realize I left the random.h in there. thank you for pointing it out.
I tried removing the ".h" from the iostream but then I get a whole bunch of errors. I didn't realize I left the random.h in there. thank you for pointing it out.
did you remember the "using namespace std;" part?
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
No I didn't remember that part. I will try that. I am sure it is obvious that I am new to this. Thanks for pointing it out
I doubt that will support the readability of the script :\Originally posted by LuckY
but most simplified like this:
Code:if (temp == 0) break; else { //... }
I put that in but I am still getting errors. If I use it as #include <iostream.h> it works ok. I have no Idea what I am doing wrong. I still can't get it to actually give out random numbers, it keeps giving me the same numbers all the time.Originally posted by major_small
did you remember the "using namespace std;" part?
you probably just have an old compiler... just keep the <iostream.h> then...
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
I was merely trying to learn thatdude about how to block code, not how to write the most readable code, but thanks for your comment either way.Originally posted by Felix
I doubt that will support the readability of the script :\
Am I doing something wrong with the random function? It keeps generating the same bumbers all the time.
Did you seed the random number generator? srand(time(NULL));
yes, you missed out your "randomize()" function in your program.
Yeah i figured that out, it was merely to stop the other guy from making "errors" like that.Originally posted by LuckY
I was merely trying to learn thatdude about how to block code, not how to write the most readable code, but thanks for your comment either way.