Author Topic: Problems with Code Blocks on macbook pro  (Read 2834 times)

vincentfiorilli

  • Guest
Problems with Code Blocks on macbook pro
« on: January 03, 2013, 02:30:38 am »
Hey I have a macbook pro 10.7.4.  Today I downloaded Xcode and codeblocks and I am having trouble having my simple program run.  The program is this out of my textbook

#include <iostream>
using namespace std;
int main ()
{
cout << "Welcome to computer programming!";
return 0
}

When I type this into code blocks and click compile then run I get this:

Last login: Wed Jan  2 20:18:59 on ttys000
vincent-Fiorillis-MacBook-Pro:~ vincentfiorilli$ /Users/vincentfiorilli/Documents/project1
-bash: /Users/vincentfiorilli/Documents/project1: Permission denied
vincent-Fiorillis-MacBook-Pro:~ vincentfiorilli$

I don't know why i'm being denied.Some one help please...