I need to read from a .data or .txt file containing a new float number on each line into a vector.
.data
.txt
float
I have searched far and wi
Just to expand on juanchopanza's answer a bit...
for (int i=0; i=((Main.size())-1); i++) { cout << Main[i] << '\n'; }
does this:
i
0
Main.size() - 1
Main
Main.size()
-1
Main[-1]