Search:

Type: Posts; User: DanteXP

Search: Search took 0.00 seconds.

  1. Thread: showpoint

    by DanteXP
    Replies
    0
    Views
    1,303

    showpoint

    Does the showpoint manipulator have any other purpose other than showing trailing zero's?
  2. Replies
    8
    Views
    2,381

    Overflow with cout

    Thanks for the feedback. I didn't realize how the rule with short to int applies. Is this a valid line of code to get testvar to overflow?


    cout<<static_cast<short>(testvar+1)<<endl;

    Thanks
    ...
  3. Replies
    8
    Views
    2,381

    No overflow in cout

    I am a little confused on why I do not get an overflow when I use the the following code.

    I am using testvar+1 as an expression in cout. This should cause an overflow but doesn't




    ...
  4. Replies
    7
    Views
    2,099

    Time as a seed

    Thanks for the feedback..

    Using the time function for my seed value.

    srand(time(0));
  5. Replies
    7
    Views
    2,099

    Random number with srand()

    I am working on a math tutor program that will generate two random numbers and display the result. I believe I have to use the srand() function to generate random number. The book mentions a seed...
Results 1 to 5 of 5