I am trying to run a C/C++ program on Ubuntu.
So at first g++
didn't work at all in the shell, so I installed it using the command
sudo aptitude update && sudo aptitude install g++
so it installed it, and when I wrote the most simplest program it compiled
g++ -Wall a.cpp -o d
But when i tried to execute it just wrote "d" on the command line and states that the command is not found, but if I type ls
in the shell it shows me that there is an executable file named d
Glad if someone can clear things out for me