So, I made a c++ program to calculate the volume of a pool. It is a console application. All the user has to do is input the dimensions of the pool and the program will retu the volume, amount of water and the area of the pool.
The problem is that I tested out the program with really high numbers and for some reason it does not work anymore (it retus wrong negative values). So, I was wondering, are there any limitations for how big the inputted value can be for a variable in int?
Also, if I run the program in release mode once it makes the calculations it displays the answer for a split second and, than closes immediately. Is there a way to keep it open, so that the user has time to actually look at the answers?
