float process(float Beta, std::ifstream & INPUT, float mass, float energy, int Juse = 1, int Jerror = 1, int intype = 1)
{
float crosscons = 8 * M_PI * mass * mass / energy; //Creates a constant that is used to calculate the cross section
int dwarf_count = 0;
int dcol = 0;
string line;
string item;
int header = 0;
string skip("#");
INPUT.seekg(0, ios::beg);
while (getline(INPUT, line)) {
if (contains(line, skip))
{
header++;
} else {
break;
}
}
This first bit I know it's reading a file, but I have no idea where it's reading the file or where it gets it from. Inside the function I know it's trying to skip to the data because it looks like the file is filled with #
I'm really new to C++ so i'm sorry if this really simple and stupid. Anything helps thanks!