Im having trouble when trying to load a database froma text file. i dont know how to do this. i tryed everythings, even with seekg and tellg, but i cannot find a way. this is the text file:
that file is saved from the same script id like to load it. the problem is that there are three different classes, and each employee is part of one of those, but how can i know which class is he one i need to create to load that employee? The classes i have are: Manager, Engineer and Researcher. the first 2 are managers, the 3rd and 4th are Engineers and the 5th and 6th are Researchers. I tryed to identify which was the class needed by searching for the words "Meeting", "Knows" or "PhD" but got problems with that.Code:====================================================== First Name = Tomas Last Name = Cordeviola Salary = 5000 Meeting per week = 3 Vacation days per year = 30 ====================================================== First Name = Agustin Last Name = Perez Salary = 3000 Meeting per week = 2 Vacation days per year = 27 ====================================================== First Name = Fernando Last Name = Blanco Salary = 2000 Knows C++ = No Years of Experience = 3 Type of Engineer = Electric ====================================================== First Name = Joaquin Last Name = Estevan Salary = 1800 Knows C++ = No Years of Experience = 2 Type of Engineer = Mechanical ====================================================== First Name = Stefania Last Name = Dominguez Salary = 2100 PhD recieved in = UP PhD thesis topic = Clothes ====================================================== First Name = Fiorella Last Name = Pertusati Salary = 1900 PhD recieved in = UBA PhD thesis topic = Something
How can i do this? please help! if you want i can post the full code..it isnt long.