I'm trying to work out how to link up the numbers I have in my text file to the variables in my equation. In my text file I have 4 numbers, each on a new line. The code I have written for this so far is:
The variables have been defined already. But I want the code to input the numbers I have in my text file to pair up with Tmin, Tmax, Tinc and the mass. This is so they can be used in the following equation:
for (double T=Tmin; T<=Tmax; T=T+Tinc) {
qT = pow((two_pi*mass*k*T/h2),1.5)*V;
If anybody could help I would be extremely grateful :)