My input text file contains this:
-4.1 -2.2 -0.5 1.2 4.6 5.1 2.1 0.2 -3.6 -4.1 0.2 0.5 2.2 4.1
-0.2 -1.2 -3.3 -4.6 -5.0 -2.2 -1.1 0.8 3.2 -0.1 -4.8
And I need to average and do some other functions with these numbers. However I can't get started, or even get my program to spew the numbers back to me.
Please help me get the ball rolling.
This is as far as I've gotten:
#include <iostream>
#include <cmath>
#include <fstream>
using namespace std;
int main()
{
//double rA, rQ, maxRuf;
double surfDat =0;
ifstream surfDat("suface.txt");
Thanks.