/* DemoIO.cpp CIS 150 5/26/2005 David Klick This program demonstrates simple C++ I/O. */ #include using std::cout; using std::endl; using std::cin; int main(void) { int n; double x; char c; cout << "Enter an integer: "; cin >> n; cout << "Enter a floating-point number: "; cin >> x; cout << "Enter a single character: "; cin >> c; cout << "You entered " << n << ", " << x << ", " << c << endl; return 0; }