home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
c
/
other
/
learn
/
breaker.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1988-10-07
|
311 b
|
20 lines
/* BREAKER.C: Demonstrate break statement. */
#include <stdio.h>
#include <conio.h>
main()
{
char ch;
printf( "Press any key. Press TAB to quit.\n" );
while( 1 )
{
ch = getche();
if( ch == '\t' )
{
printf( "\a\nYou pressed TAB.\n" );
break;
}
}
}