Hi, for a weird reason, I get 1 error which says : Permission Denied.
I don't think the code is the problem because I've tried it with other legit codes and it still gives me this error.
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream>
usingnamespace std;
int main()
{
string nom("x");
cout << "Vous avez quel age ?";
cin >> nom;
cout << "Vous avez-vous donc" << nom << "ans?" ;
return 0 ;
}
The weird thing is... I deleted everything and created a new project. The first try when I compiled my code, everything worked. (The Hello world message)
after, I added my own code, and it compiled again, the console showed up but the it didn't execute my code. Now, the console doesn't even show up, it says my permission is denied. :( What the... is happening ? In fact, my .exe even goes away, maybe that's the reason it's not working.
The code of Blanchy worked! With the cin.get(); , it works perfectly.
When I do not put it, the whole thing messes up and giving me the same problems... Even when I reput the cin.get(); , forget it, it stops working. Could anybody explain why ?
Idk man it sounds like you .exe files are having a hard time getting shutdown properly, if you get it up and running again try to manual end the process in your task manager and see if that helps.
Go to the task manager and then go to processes and it is probably at the very bottom still running it more than likely wont be under applications where you looked I am guessing.
"cb_console_runner" isn't your program. It is a parent process which runs the program for you. The actual program will have a different name, "test.exe" I guess.
Ah geeez, I did a copy of my .exe file on my desktop and recompiled my programm and it started doing the error. But the one on my desktop is still here, tried to put it back in my folder and it says I can't do that. (Im the administrator on my computer.)