home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Supreme Volume 6 #1
/
swsii.zip
/
swsii
/
099
/
IOSTREAM.ZIP
/
EX_I26.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-07
|
382b
|
24 lines
// EXAMPLE INPUT-31
// ENTER A NUMBER AND LOOP
// UNTIL EOF IS DETECTED
#include <header.h>
int main()
{
cout << "Enter a number: " ;
int num ;
cin >> num ;
while (!cin.eof())
{
cout << "You entered: "
<< num
<< '\n' ;
cout << "\nNext number: " ;
cin >> num ;
}
return 0 ;
}