Search:

Type: Posts; User: Chipmunkey

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,107

    A few questions

    Hi the first question is, how can I set a min and max for the rand function. At the moment i'm seeding from ctime then using

    int theNumber = rand() % max + 1
    It picks a number between 0 and 100...
  2. Replies
    6
    Views
    1,756

    So...

    So, the cin places the input into the buffer, and when I use cin.get it reads from buffer and thinks somethings been pressed? Or am I way off lol.
  3. Replies
    6
    Views
    1,756

    Thanks

    Thanks, it worked. But i'm still pretty confused. Whats the definition of buffer? What do you mean read in new line. Thanks again. :)
  4. Replies
    6
    Views
    1,756

    Ending after do while loop

    Hi, I've made a guess my number program and it ends straight after the while loop is met. And passes my cout thing after.


    #include <iostream>
    #include <ctime>
    #include <cstdlib>

    using...
  5. Replies
    11
    Views
    1,480

    Classes...

    Sorry to go off topic, but I'm not quite sure as to the purpose of classes. All I see is a couple of variables being declared in a separate block of code. Could someone explain it to me please?
    ...
  6. Replies
    11
    Views
    1,480

    Which

    So which of those do you think out of those would be better?
    Or are they all good choices?
  7. Replies
    11
    Views
    1,480

    Thanks...

    Thanks for all the replies, anyways. Do the ones you suggest apply to someone going from a little past not knowing cout - to wherever it could take me. If you could suggest one of the books which...
  8. Replies
    11
    Views
    1,480

    Sorry...

    Sorry for the double post but I see things like this:-

    http://newdata.box.sk/bx/c/

    Is it the same book and is it legal?

    Thanks,
    Ben
  9. Replies
    11
    Views
    1,480

    Teach yourself...

    I think I will buy "teach yourself C++ in 21 days". What are your opinions? I've heard it jumps straight into OOC without easing you in. Is this true? Lastly whats the difference between that one...
Results 1 to 9 of 9