Hi,
This is my first post!
I mainly program in Python, with a bit of Visual Basic. I've recently taken an interest in C++.
I'm having an issue compiling even the most basic program on my system. I've tried using MinGW and Visual C++ compilers, but the same issue arises.
Trying to compile this, the most basic program, all I get is a blank Command Prompt window with a flashing cursor.
The line "Hello, World!" doesn't print and the program seems to hang. When I try to re-run I get a Permission Denied error.Closing the Command Prompt window leaves the process running in memory.Code:#include <iostream> using namespace std; void main() { cout << "Hello, World!" << endl; cin.get(); }
It doesn't show in Task Manager, but when I run Tasklist
from Command Prompt I see the process, which I need to kill usingAs I said, I've tried using other compilers. I've also tried changing the write permissions in the directory the application is running from. I've even excluded the directory from my AntiVirus as I've read this can be an issue.Code:Taskkill /PID {id-no} /F.
So. I'm stuck with this seemingly simple issue, with the solution probably staring me in the face, but I can't seem to see the wood for the trees.
Maybe an outside perspective will reveal a solution?