I am trying to wri-te a c++ programme that searches for a match in the .txt file.
example of possible content in .txt file
in my main() on my .cpp program. I am opening the file. I then ask for the employee id to be entered. such as 'vim423.'
If there is a match then I want to be able to see display the number in the next column (number of years the employee has worked for).
If there is not match, then I need to be able to cout <<"EMployee does not exist" << endl;
please provide a full working code.
Output of the program is... View the full answer