Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: e95cf12bf9
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (28 sloc) 0.779 kB
#include "get_parameters.h"
vector<double> get_parameters()
{
vector<string> p15;
vector<double> p;
string data;
ifstream parameters;
parameters.open("p15.dat");
getline(parameters, data);
p15.push_back(data);
while( !parameters.eof() )
{
getline(parameters, data);
p15.push_back(data);
}
parameters.close();
p15.pop_back();
size_t found;
size_t len;
for(int i = 0; i < p15.size(); i++)
{
len = p15[i].size();
found = p15[i].find_first_of("\t");
p15[i].erase(found, len - found);
p.push_back( atof( p15[i].c_str() ) );
}
return p;
}
Jump to Line
Something went wrong with that request. Please try again.