It works fine with the generate function once you fix the array size, or the number of loop iterations. This is a different issue from what the OP described and Im wondering if they have ever been able to compile on this system.
no linux doesnt lock files (well ubuntu locks one when your downloading through apt-get). ive had the same source file open across three text editors (vim, gedit, and i think it was the wine notepad)
> (while true) Why don't you like it?
> Because you don't know what to press to exit it?
> Try Ctrl+C, you should be running console applications from within the command prompt anyway
In which case you wouldn't need stupid hacks to `keep the console open'
The method is awful and it is not original at all.
About permission denied, I would guess that you don't have your current path in the PATH. Try: $ ./a.out
I put this in ~/.profile, but you might have a different file for setting environment variables: PATH=".:$PATH"
Which declares that the current directory is a place to look for executables, so I don't need to type the './'
Note that this might cause confusion if you make a program with the same name as something in a real bin directory.