Search:

Type: Posts; User: CPPN0OB

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    5,400

    Random Number Generation-Increments

    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>
  2. Replies
    3
    Views
    838

    I just want to see if anyone can point out the...

    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 :)
  3. Replies
    3
    Views
    838

    Trouble Looping!

    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...
  4. Replies
    7
    Views
    1,696

    How do I read in a certain line?

    How do I read in a certain line?
  5. Replies
    7
    Views
    1,696

    To read in all the phrases do I have to declare...

    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?
  6. Replies
    7
    Views
    1,696

    "rand" as in random number generator?

    "rand" as in random number generator?
  7. Replies
    7
    Views
    1,696

    Using input stream to get string from file.

    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...
  8. Replies
    6
    Views
    984

    I've got everything else to work. However, while...

    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:...
  9. Replies
    6
    Views
    984

    wow! Thank you for that! I feel really dumb right...

    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!
  10. Replies
    6
    Views
    984

    I am trying to pass the result of pwTest to...

    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.
  11. Replies
    6
    Views
    984

    Calling a function within a function.

    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...
  12. Replies
    10
    Views
    17,937

    Ok, I'm not sure I'm getting anywhere and I'm...

    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...
  13. Replies
    10
    Views
    17,937

    Ok, I did what you said. Although I still feel as...

    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...
  14. Replies
    10
    Views
    17,937

    Ok, so this is pretty much what I want to do....

    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...
  15. Replies
    10
    Views
    17,937

    Flag-Controlled Loops

    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...
Results 1 to 15 of 15