Alright, I have this code. The idea of the code is to click on the X button to exit . My problem occurs since I can't check to see if there was a mouse click...or if there was input...and if there was input...that would be it, as in i would not need an extra cin statement. I basically need the code that checks if the X has been clicked to be constantly running, while other things are still going on.
using namespace std;
cout<<"Enter any number of temperatures, with a keypress between entries."
<<"\nClick the X button to exit.\n";
cout<<"Enter temperature: ";
cout<<"\nThe Highest temperature was: "<<highest_temp;
cout<<"\nThe Lowest temperature was: "<<lowest_temp;
cout<<"\nThe average temperature was: "<<total<<'\n';