I cut&pasted the below code from a previous question into a file called \"avishay.cpp\" and then ran
gcc avishay.cpp
only to get the f
Use
g++
space followed by the program name. e.g:
g++ prog.cpp
if the filename was "prog.cpp" in this case. if you want to run the program write:
./prog
so i used
"prog"
because it was my filename.