Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: chessman on June 15, 2013, 01:09:01 am

Title: Permission denied ?
Post by: chessman on June 15, 2013, 01:09:01 am
Hi, I'm having a serious trouble when I compile my code :
 #include <iostream>

using namespace std;

int main()
string nom("x");
cout << "Vous avez quel age ?";
cin >> nom;
cout << "Vous avez-vous donc" << nom << "ans?" ;
return 0 ;

Here's the resume ; I click on compile&run and my console do open, but it doesn't execute the code.(nothing happens.) I CLOSE the console and re click on compile & run, but this time, an error shows up saying : 1d.exe , cannot open output file bin\Debug\test.exe permission denied. And that's not all, because the .exe has totally disapeared. So, basically, I can't run anything and need to delete my file and recreate a new one. The moment I add this code, the same thing happens. I have no idea what to do. (By the way, I just began learning.)

thanks !
Title: Re: Permission denied ?
Post by: stahta01 on June 15, 2013, 01:13:10 am (