How to format a data file to read numbers any time?

  • Thread starter Thread starter MyCatAlex
  • Start date Start date
M

MyCatAlex

Guest
I have this file which is very large. A few first lines are here:


public: double FlatAreas (int L, int M)
{
// The file contains calculations of the flat areas for the ALP's
// L-index M-index Angle (deg)

1 0 0.21
1 1 8.17
2 0 0.63
2 1 3.39
2 2 15.83
3 0 0.36
3 1 4.13
3 2 8.71
3 3 22.17
4 0 0.49



It works well in my Linux C++ project under Ubuntu. The extension of this file in Linux is .dat.

I tried to include it in a Solution in Microsoft Windows 10 Visual Studio C++ project and the solution could not really place it anywhere. I then gave it .cpp extension and

it ended up among source files but I cannot compile it. The idea of this file is that given two numbers in a certain range, I need to pull the third number. How can I do it?

Thanks, - MyCatAlex

Continue reading...
 

Similar threads

M
Replies
0
Views
142
MyCatAlex
M
M
Replies
0
Views
219
MyCatAlex
M
M
Replies
0
Views
156
MyCatAlex
M
U
Replies
0
Views
206
UnixWolf
U
Back
Top