2
Contributors
5
Replies
7
Views
6 Years
Discussion Span
Last Post by cheers07
0

What operating system and what compiler ? The easiest way to capture the Enter key would be to use the non-standard functions in conio.h, but your compiler may or may not support that.

0

we use Visual basic 2005 for the c++, my group and i have no idea on how we will be able to do this. can you help me?

0

What operating system and what compiler ? The easiest way to capture the Enter key would be to use the non-standard functions in conio.h, but your compiler may or may not support that.

we use Visual 2005 for the c++, my group and i have no idea on how we will be able to do this. can you help me?:)

Edited by cheers07: n/a

0

I'm not going to write the program for you, but to get the Enter keys

while(_kbhit() )
{
   int c = getche();
   if( c == '\n' )
   {
      printf("got one\n");
   }
}
0

I'm not going to write the program for you, but to get the Enter keys

while(_kbhit() )
{
   int c = getche();
   if( c == '\n' )
   {
      printf("got one\n");
   }
}

thanks a lot! this would do! Thanks again :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.