I have a text file that has a title and numbers below. I wish to remove the word "Title" and only leave the numbers in the file. In addition, the existing code for calculating the average of these numbers is below. Can someone please include a modified code that will remove the title along with calculating the average as per the below?
cout << "The last number in this range is: " <<num<< "\n";
cout<< "The sum of this range is: " <<(total-num)<<'\n';
cout<< "The number of items in this range is: "<<x-1<<'\n';
cout<< "The average of this range is: "<<aver<<'\n';
cout<< ""<<'\n';