So I write this program to make a file that lists angles, radians, sines and cosines that
the file it makes looks something like this...
0 0 0 1 0
1 0.0174533 0.0174524 0.999848 0.0174551
2 0.0349066 0.0348995 0.999391 0.0349208
3 0.0523599 0.052336 0.99863 0.0524078
4 0.0698132 0.0697565 0.997564 0.0699268
5 0.0872665 0.0871557 0.996195 0.0874887
6 0.10472 0.104528 0.994522 0.105104
7 0.122173 0.121869 0.992546 0.122785
8 0.139626 0.139173 0.990268 0.140541
9 0.15708 0.156434 0.987688 0.158384
10 0.174533 0.173648 0.984808 0.176327
11 0.191986 0.190809 0.981627 0.19438
etc....
I need to reference this file in some other program. B
Basically I need a function that will read specific lines depending which sine or cosine I need.
This is in C++
the file it makes looks something like this...
0 0 0 1 0
1 0.0174533 0.0174524 0.999848 0.0174551
2 0.0349066 0.0348995 0.999391 0.0349208
3 0.0523599 0.052336 0.99863 0.0524078
4 0.0698132 0.0697565 0.997564 0.0699268
5 0.0872665 0.0871557 0.996195 0.0874887
6 0.10472 0.104528 0.994522 0.105104
7 0.122173 0.121869 0.992546 0.122785
8 0.139626 0.139173 0.990268 0.140541
9 0.15708 0.156434 0.987688 0.158384
10 0.174533 0.173648 0.984808 0.176327
11 0.191986 0.190809 0.981627 0.19438
etc....
I need to reference this file in some other program. B
Basically I need a function that will read specific lines depending which sine or cosine I need.
This is in C++