Advertisement

What approach should i use

Started by November 13, 2002 07:34 AM
3 comments, last by PerkanusRex 22 years ago
I want to initialize a list of employees with a file. The file format is as follows: Employee { Id = emp1 Fname = Vlad Lname = Dracul Type = 1 PosX = 10 PosY = 10 HsX = 10 HsY = 10 } Employee { Id = emp2 Fname = Usama Lname = Bin Laden Type = 1 PosX = 10 PosY = 10 HsX = 10 HsY = 10 } Anyone knows a good way or an article that can help me with that. I can solve it myself but why "Reinvent the wheel" when someone else did before me. BR /PerkanusRex .
Bad monkey. When the teacher tells you to find a solution, do it. Not ask others to do it.

- Zorak - Neat Fella.
Domine non secundum peccata nostra facias nobis
Advertisement
Hehe.

When you are programming for a living you prefer to take all shortcuts you can find.


What I would do personally (and I hope this is not a school project and something actually for work) is to keep with that Struct format and just retrieve that information off a database. Use the EmployeeID as the index key as it will be unique. Hopefully that helps.
quote: Original post by Zorak
Bad monkey. When the teacher tells you to find a solution, do it. Not ask others to do it.

He''s not asked anyone else to do it, he''s asking for advice. People are just as entitled to ask for advice about homework (if that''s what it is) as they are real work.

This topic is closed to new replies.

Advertisement