My int main works just fine however, when my program calls swimmingPool.h it closes and doesn't finish with the rest of the program. I do not have any errors or warnings being displayed when I debug my program.
I've included the code for the three files I am using for my program. Help would be greatly appreciated.
//main program .cpp file
#include <iostream>
#include "swimmingPool.h"
usingnamespace std;
int main()
{
//User input has a place to stay
double length, width, depth;
double rateWater, rateDrain;
cout << "Pool Data\n" << endl;
cout << "Length: ";
cin >> length;
cout << "Width: ";
cin >> width;
cout << "Depth: ";
cin >> depth;
cout << "Enter the rate in which water fills the pool: ";
cin >> rateWater;
cout << "Enter the rate in which water drains the pool: ";
cin >> rateDrain;
//Data from user gets stored into class. Then computes the info
//into the algorithm which determines the time to drain the pool.
swimmingPool poolInfo(length, width, depth, rateWater, rateDrain);
double waterFill = poolInfo.poolWater();
cout << "Time it will take to drain the pool: " << waterFill;
//Takes the users data and determines how long it will
//take to fill the pool.
double timeToFillPool = poolInfo.timeToFill();
cout << "Time it will take to fill the pool: " << timeToFillPool;
return 0;
}