This problem is very frustrating. For non-Linux users, this may not make sence. When I compile a perfect program (one pre-made)...
g++ foo.cpp

It compiles just fine and everything's happy because I have an a.out file. However, when I try to run the program...
I get an error saying something along the lines of "foo.out: Permission Denied."
When I check the permissions, everything seems okay. The owner is able to run it, write it, and read it; I own it. For extra measure I made the file executable for all users once again.
Do I need a package for the ./ "command"? This happens in Perl, too, but then I just type "perl" and it woks just fine.
Thanks in advance.