home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C by Discovery (4th Edition)
/
C_By_Discovery_4th_Edition.tar
/
C_By_Discovery_4th_Edition
/
_DISK_
/
ch12
/
epp1.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2005-06-16
|
372b
|
18 lines
// epp1.cpp
//
// A simple I/O example
//Include Files
#include <iostream.h>
int main()
{
int intvar;
char charvar;
float floatvar;
cout << "Enter an int, a char, and a float: ";
cin >> intvar >> charvar >> floatvar;
cout << "You entered " << intvar << ", |" << charvar << "|, " << floatvar << "\n";
return 0;
}