At the end of my code, I would like to add in a piece of code that simply closes out of whatever window the program is running in. I would like the equivalent of pressing the "X" button in the top right (running windows), only automatically.
Code:if (bool=='n'||bool=='N')
{
// something to exit program
}