puoi fare anche system("pause")....visto che sei in DOS