Hey Noxir, a couple suggestions:
- Thread titles should be descriptive (e.g. not "help needed"). I think it is safe to assume most threads are started because help is needed.
- You have not yet told us what the problem is. When you incorrectly implemented Hunter2's suggestions, you got compile errors. Is that what you need help on - fixing compile errors? If so, what are the errors? It may seem obvious to you, but it is not necessarily obvious to everybody else.
- Sarcastic remarks regarding other peoples attempts to help you don't come off very well when you are the one who made the mistake(s).
- Stick with <cstdlib>, <iostream>, and <fstream> - I have a feeling that you don't have a valid reason for requiring the .h for those include.
Anyway, good luck on solving your problems, whatever they are.