[user02@FC4 Lesson06]$ cat -n inc_op.cpp
1 #include <iostream>
2 using namespace std;
3
4 int main()
5 {
6 int count = 1000;
7
8 cout << "count's starting value is " << count << endl;
9 count++;
10 cout << "count's ending value is " << count << endl;
11
12 return 0;
13 }
[user02@FC4 Lesson06]$ g++ -o inc_op inc_op.cpp[user02@FC4 Lesson06]$ ./inc_op
count's starting value is 1000
count's ending value is 1001
lesson_6_inc_op.cpp, Rev. 1, Last changed on 2005-08-09 02:09, 357 page hits