It would have been nice if you had put that code inside [code] tags, as that would have made it a lot easier to read and would also preserved any formatting, like the indentation I sincerely hope is present in the original source code.
It would have been even better it you had explained or indeed said anything about the nature of the problem.
It would have been just splendid if you had said something along the lines of "I'm trying to create a program that does A, B and C, but I keep getting the error message XYZ", instead of expecting other to copy, paste and compile your code, run it, check the results, analyze the source code, and try to figure out what the problem might be.
|