lesson 6 inccount cpp
[[lesson_6_inccount_cpp]] last edit on Aug 9, 2005 2:09 AM by rescued_by_c

[user02@FC4 Lesson06]$ cat -n inccount.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 = count + 1;
  10     cout << "count's ending value is " << count << endl;
  11
  12     return 0;
  13  }
[user02@FC4 Lesson06]$ g++ -o inccount inccount.cpp
[user02@FC4 Lesson06]$ ./inccount
count's starting value is 1000
count's ending value is 1001