Reference no: EM13166921 
                                                                               
                                       
Implement the readLog function below, which is to (1) read the file, (2) populate a vector for each column, and (3) return the number of lines found.
The log file is of unknown length so red until the end of file is reached.
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <iomanip>
using namespace std;
int readLog( string filename, vector<double>& t, vector<double>& P0, vector<double>& T0, vector<double>& M )
{
insert function here
}
int main()
{
vector<double> t, P0, T0, M;
int points = readLog("log.txt", t, P0, T0, M);
cout << points << "lines read:" << endl;
return 0;
}
                                       
                                     
                                    
	
		| The plot thickens
                                        : Consider the following correspondence between letters/symbols and numbers: A=1, B=2, C=3, D=4, E=5, F=6, G=7, H=8, I=9, J=10, K=11, L=12, M=13, N=14, O=15, P=16, Q=17, R=18, S=19, T=20, U=21, V=22, W=23, X=24, Y=25, Z=26, a period is equal to 27, a c.. | 
		| Describe the windows kernel
                                        : Describe the Windows kernel, including its two main components. | 
		| Program that will ask the user for total debt of customer
                                        : Write a Java program that will ask the user for the (1) name, (2) gender, and (3) total debt of customers. | 
		| Let t be the degree of a btree
                                        : Let t be the degree of a BTree. Suppose the size of each object,  including the key, stored in the tree is 90 bytes. Also, suppose the  size of a BTreeNode pointer is 4 bytes. | 
		| Implement the readlog function
                                        : Implement the readLog function below, which is to (1) read the file, (2)  populate a vector for each column, and (3) return the number of lines  found. | 
		| Circuit that has 5 slide switches as inputs
                                        : Design and code a circuit that has 5 slide switches as inputs and a  push-button. When the button is pressed, the circuit will drive a  stepper motor n-steps in the clockwise direction | 
		| Reverses all the element of an array
                                        : Write a function that reverses all the element of an array.that is,the  first element is exchanged with the last element; the second element is  exchange with the second to the last element,and so on | 
		| The main method must repeatedly have the use
                                        : After the method is defined, the main method must repeatedly have the  user enter 3 integers, call the triangleType method and display the  return type. Be sure not to have an infinite loop by allowing the user  to quit. | 
		| Reverse the string
                                        : Reverse the string. If the reversed string is the same (.equals()) as the original, pared down, string then it is a palindrome.Way 2: Look at the first and last letter and see if they are the same  (using the charAt() method), then the second letter .. |