Does the showpoint manipulator have any other purpose other than showing trailing zero's?
Type: Posts; User: DanteXP
Does the showpoint manipulator have any other purpose other than showing trailing zero's?
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
...
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
...
Thanks for the feedback..
Using the time function for my seed value.
srand(time(0));
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...