I am able to generate the output file but it does not execute.
This is what I do:
g++ program.cpp -o program
then I can see the program as the output file but when I type program it says:
It says bash: program: command not found.
So, what am I missing?
Thank you for your time.
Hello
Why not compile with DevC++ and then just run the exe file?
To run the file in cmd, just go to the directory where it's located and type the exe's name. Without the extension. Or I guess you could type that too, but I rarely use it.
Try, at the command prompt enter:
./program <enter>