HI,
I am relativly new to c ++ and was wondering if there was a function that I could use that will always return a positive integer. For example if I did 1- 5 it would return 4 instead of -4.
Thank you in Advance
Craig Smith
This is a discussion on Positive integers within the C++ Programming forums, part of the General Programming Boards category; HI, I am relativly new to c ++ and was wondering if there was a function that I could use ...
HI,
I am relativly new to c ++ and was wondering if there was a function that I could use that will always return a positive integer. For example if I did 1- 5 it would return 4 instead of -4.
Thank you in Advance
Craig Smith