I want to make a c++ program that will ask values that can be stored in an array and when the user press "esc" the program will stop asking for the values and the program will identify the largest and smallest value stored in the said array.
If this is windows, then you need to use _getch() from #include <conio.h> which is non-standard. This obtains the entered char without also requiring a following \n.
Standard C++ has no mechanism to obtain a single char without a \n being also entered.
I'm using windows. This is a part of my exam and I don't know how to make this one, I'm Blank for this one. Thank you for all of your reply. I will explore more the Dev C++. Btw. I'm not a computer programmer that's why it's hard for me.
For some reason I was thinking escape emitted 2 characters instead of just a 27 and was thinking to use the 'keypress'/ virtual keys tools on it which is more aggravation. Thankfully looks like 27 is good to go.