Try with g++ :
g++ program.cpp -o a.out
Or with gcc (If you add the c++ runtime library) :
gcc program.cpp -o a.out -lstdc++
solved How to get an integer from user in c++? [closed]
Try with g++ :
g++ program.cpp -o a.out
Or with gcc (If you add the c++ runtime library) :
gcc program.cpp -o a.out -lstdc++
solved How to get an integer from user in c++? [closed]