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)
and my test values are:
If I pass 0.02 function should return 100. 0.03 should return 1000.
Can anyone give me a good example of this?