Does it compile? If not, then the error messages point out what to look for. If it does, but crashes during run-time, then you need to run in debug mode to see where you are when it all goes to...