alright. I have this file that lists about 3000 coordinates in this way.
-90.0000 0.0000 220.7533
-90.0000 5.0000 220.7533
-90.0000 10.0000 220.7533
-90.0000 15.0000 220.7533
I'm trying to open this file in my program, but I'm having no luck at all. I've tried reading numerous threads on doing so, but after hours and hours of frustration, nothing has worked.
So far I have this
#include <fstream>
#include <string>
using namespace std;
int lat;
int lon;
int R;
int main()
{
ifstream in("4vesta.txt");
string line;
while( getline(lat, lon, R) )
{
cout << lat << lon << R << endl;
}
}
I mainly want the code to read those numbers, so I can set it up as an array.
Thanks.