Enter | Sololearn: Learn to code for FREE!

-2

Enter

c++

c++

12/15/2016 7:29:41 AM

anand

1 Answer

New Answer

+1

The ASCII value of enter key is 13..we can check the status of enter key press using getch() and ASCII value.... Char ch; cout<<"enter keys"; ch=getch(); if(ch==13) cout<<"enter key pressed"; else cout<<"key pressed is not enter key";