This content has been marked as final. Show 2 replies
It works fine when I compile and run it - I added the last pair of } and corrected the typo that the forum formatting seemed to have introduced.
Are you compiling and running the program from the command line?
I am using TextPad to enter the code - then Tools > Compile then Run. All the other 30 examples have run OK using this method.
Yes - I checked running the program from the command line and it is OK!!
I will ask the question in the TextPad forum.
Thanks for your help