Guys, can you help me in this problem:
A cpp program that reads a text file named "employee.txt", which contains:
EMPO1, Juan, 1
EMPO2, Pedro, 2
The program requires enter the code and compares the code to the existing file "employee.txt". When if the code is found, it prints the name, level and salary associated with the code on the console. Then it prints the code and the salary on the file "record.txt"
This is quite easy to implement. You just have to sit and think it through. A suggestion is to use getline(ER, line) as your while loop condition -line 23. You also might want to get the code first before searching the file for the code, or am I missing something?