This program defines and solves several different functions using recursive formulas. The main functions prompts the user for a numerical input, solves the functions with this input and then writes the results to .txt files.
connorvhennen / recursivefunctionsandfilestreams Goto Github PK
View Code? Open in Web Editor NEWThis program defines and solves several different functions using recursive formulas, and defines two classes that behave like std::ifstream and std::ofstream file variable objects but automatically close after they are called, and automatically std::cout an error if the file failed to be opened. The main functions prompts the user for a numerical input, solves the functions with this input and then writes the results to .txt files.