I have searched for this question all over the Internet, including Stack Overflow, and have not found an answer that solves my problem.
I am running the Code::Blocks IDE on Windows 10. When I try to build (and run) my program, C::B gives me the error:
cannot open output file bin\Debug\MultidimensionalArrays.exe Permission Denied
So, people have said to restart C::B - doesn't work; temporarily disable my antivirus (Avast) - doesn't work; delete the .exe file manually - doesn't work (says the file is open in System); go to Task Manager and kill the two (yes, two) MultidimensionalArrays.exe processes - doesn't work; download Process Explorer to kill process tree - doesn't work; do all of the above as an administrator - doesn't work.
(By the way, even when I didn't have this problem, I needed to disable Avast anyway, because when it was enabled I wasn't able to run my program.)
I've also tried restarting my computer, but alas, it doesn't work.
So...any suggestions? I want to get on with C++ but I have to deal with this annoying problem first.
P.S. If you want to look at my code for some reason:
#include <iostream>
using namespace std;
int main(){
int chicken[2][4] = {{15, 25, 35, 45}, {16, 26, 27, 28}};
for(int row = 0; row < 2; row ++){
for(int column = 0; column < 4; column ++){
cout << chicken[row][column] << " ";
}
cout << endl;
}
}
bindirectory, and make sure you run C::B as administrator - M.M