Hi, i'm italian, and i create a small program which simulate a PIANO, i have a question, how can i enter a value without press everytime enter, ex: i make 5 notes (do,re,mi,fa,sol) which i choise with (1,2,3,4,5), when i had choise my note, ex: 2(re), i must press Enter to confirm, do exist some another metod without press enter?
for ex:
ideclare a int choise;
scanf("%d",&coiuse);
if(choise==1)
{bla-bla}
when i press 2, i want play my sound (re) withoud confirm everytime with enter, thanks for your help.
P.S. program is in Italian, of course.
P.S.S. my program is too long 77k char (xD), and i can't add here ;)
There is no standard way of doing this because not all consoles are the same. To add this feature, you can try conio library for windows or curses library for *nix systems.