c++ closing this infinite loop...
Hello! I have been trying to close this infinite loop but have been unsuccessful! I can't seem to figure out the condition in this program that is always true. Someone please help me!! And thank you! //DATE: ///The following program takes input from an investment portfolio and displays ///the content to the output device (monitor/outfile). It also calculates the ///total invested, Possible annual holdings for maximum loss and gain and whether ///the portfolio is a sound investment or not. Outputting the information to the output ///device as well. #include <iostream> #include <iomanip> #include <fstream> #include <math.h> using namespace std; int main() { cout << "Student Name: Sean O'Neil" << endl;//Programmer: cout << "CS150 SP18" << endl;//CS150 SP18 cout << "TA: Rozhin" << endl;//TA: cout << "3/19/18" << endl;///PART A Declare and Initialize____________________________________________________________________________ ///1. Declare and INITAILIZE the variables string symbol; double Invested_amount = 0; float investedAmount; float maximumReturn; float maximumLoss; float totalInvested; float maxReturnOverall; float maxLossOverall; double is_sound = 0; string choice = "1"; string outFile_name; string inFile_name; ///2.Declare the input file ifstream inFile; ///3.Declare the output file ofstream outFile; ///4.OUTER WHILE LOOP GOES HERE while (choice == "1") { ///5. Set output fixed, showpoint, setprecision of two for all decimals cout << fixed << showpoint << setprecision(2); ///6. Prompt user for the input file(Ex. folio1.txt): cout << "Please enter the input file name and please include the .txt extension (EX: folio1.txt) "; cin >> inFile_name; ///a. Open the input file using the users input, remember to convert string to a c string (ex. filename.c_str()) inFile_name.c_str(); ///b. Include error handling: if file cannot be fo