title: Using Ifstream to create a vector or array, to use the values in the main function
body: <p>I'm trying to input partial file content into an array or a vector of type double, and then compare these variables to find the largest of them.</p>
  
  <p>the file has these:</p>
  
  <p>10003830 2.5<br>
  37585765 3.2<br>
  47565873 1.9<br>
  48577594 2.9<br>
  76487649 3.7<br>
  38457955 2.9</p>
  
  <p>in student number and gpa format. I only need to compare the gpa and display the gpa and the student number of the student with the highest gpa.</p>