Hi,
Im a new beginner to C++ and i have a question.
I have a .txt document with many different values.
I would like to return a value from the .txt file depending on what value i give in.
I want to pass how many lines in the .txt file.
eg. text file contains:
5 (lines in .txt file)
10000
1000
100
10
0
and my test values are:
0.04
0.03
0.02
0.01
0
If I pass 0.02 function should return 100. 0.03 should return 1000.
Can anyone give me a good example of this?
Best regards