prima del return nel main metti system("pause");