[user02@FC4 Lesson07]$ cat -n firstcin.cpp
1 #include <iostream>
2 using namespace std;
3
4 int main()
5 {
6 int number; // The number read from the keyboard
7
8 cout << "Type your favorite number and press Enter: ";
9 cin >> number;
10 cout << "Your favorite number is " << number << endl;
11
12 return 0;
13 }
[user02@FC4 Lesson07]$ g++ -o firstcin firstcin.cpp[user02@FC4 Lesson07]$ ./firstcin
Type your favorite number and press Enter: 101
Your favorite number is 101
lesson_7_firstcin.cpp, Rev. 1, Last changed on 2005-08-10 03:14, 303 page hits