for some reason my program shuts down after inputting the variables.
here is my main.cpp and my filer.cpp which the program is suppose to run after inputting the values by user.
#include "utility.h"
#include "filer.h"
int main()
{
int n = 0;
int range = 0;
bool truly_random = 0;
string file_name;
int c = 0;
// I/O for max numbers
cout << "How many numbers would you like to be put in this file?" << endl;
cin >> n;
cout << endl;
// I/O for range of numbers
cout << "What would you like the ceiling number to be? (the floor number is pre-set at 0)" << endl;
cin >> range;
cout << endl;
// I/O for file name
cout << "What would you like the name of your file to be?" << endl;
cin >> file_name;
cout << endl;
// I/O for decision on truly random or psuedorandom
cout << "Would you like your numbers to be Psuedorandom or Truly random?" << endl;
cout << "If you would like Psuedorandom press '1' if Truly random press '2'" << endl;
cin >> c;
if(c == '1')
{
truly_random = true;
}
else
{
truly_random = false;
}
cout << endl;
filer run;
run.makefile(n, range, truly_random, file_name);
} // end main