This is my source code:
// snip // #include <conio.h> // snip //
what is wrong with it ??
conio library is dos-only. You already use iostream functions, which are in standard C++, so just remove conio.h include and getch().