Hi, I'm trying to generate a random number between 50 and 1000(inclusive) in increment of 50.
I'm using the libraries
#include <ctime>
#include <cstdlb>
Type: Posts; User: CPPN0OB
Hi, I'm trying to generate a random number between 50 and 1000(inclusive) in increment of 50.
I'm using the libraries
#include <ctime>
#include <cstdlb>
I just want to see if anyone can point out the flawed logic in this. I'm pretty sure it's something obvious but I've been looking at it too long too see it!
Thanks :)
I am designing a simple game that takes random word from a file, turns the string into stars and then the user guesses the string character by character, so basically like wheel of fortune!
I...
How do I read in a certain line?
To read in all the phrases do I have to declare them as strings? Then read them in or can I just read them in?
"rand" as in random number generator?
Basically, I'm trying to open a file that has 10 words/ phrases in it. What I want to do is open the file and pull just one of the phrases out(at random). I'm stuck at this point and am not really...
I've got everything else to work. However, while testing I came across the bug.
When I was testing to see the output when I entered only 1,2 or 3 characters in the string this error kept popping up:...
wow! Thank you for that! I feel really dumb right now! I guess I was thinking ahead when I wrote that. Thank you very much!
I am trying to pass the result of pwTest to pwType. The result of pwTest is an integer ranging from 0-8 depending on the number of tests failed.
Hi!
I am at the end of a very long program and I have one last thing to do.
That is call an integer function into a string function with one integer parameter:
string pwType (int...
Ok, I'm not sure I'm getting anywhere and I'm getting really frustrated with this! I've read the chapter in my book on loops like 10 times, and I've been looking all over the web. It's driving me...
Ok, I did what you said. Although I still feel as if I am defeating the purpose of looping.
What can I do to make this loop work and shorten the amount of code? Again I'm trying to create a flag...
Ok, so this is pretty much what I want to do. However, I think I'm defeating the purpose of a loop.
I can't grasp the semantics of reiteration. But here's the general idea.
Also, I noticed I...
Hi, I'm new to the board and to C++!
I am trying to design a program that will basically read in 8 numbers and then indicate whether any of them were larger than 50 or smaller than 10.
I need...