I'm new to C++ programming. I'm working with a File. It contains different Operators with value and Error for each of them.
I want to write a code that can find the operator name and sore it's Value and Error in an array. I wrote a Search function which can read a string from a file, it returns its position. That's the way i can find Operators, what i don't know here is how to find it's value and Error. Because they have the same format for all operators.
So what I think might help is that after finding every operator i should get the first Value and store it for that operator. But i don't know how to do that.
No idea what you are talking about. Please post the contents of the file. Then post some sample code that shows us how you are reading the file and parsing the string data. Also read this and make sure that you use tags when posting the formatted code. Please ensure that the code is neatly formatted before pasting and adding the tags. http://cplusplus.com/articles/firedraco1/