lesson 10 two msgs cpp
[[lesson_10_two_msgs_cpp]] last edit on Aug 18, 2005 6:04 AM by rescued_by_c

[user02@FC4 Lesson10]$ cat -n two_msgs.cpp
   1  #include <iostream>
   2  using namespace std;
   3
   4  void show_title()
   5  {
   6     cout << "Book: Rescued by C++" << endl;
   7  }
   8
   9  void show_lesson()
  10  {
  11     cout << "Lesson: Getting Started With Functions" << endl;
  12  }
  13
  14  int main()
  15  {
  16     show_title();
  17     show_lesson();
  18
  19     return 0;
  20  }
[user02@FC4 Lesson10]$ g++ -o two_msgs two_msgs.cpp
[user02@FC4 Lesson10]$ ./two_msgs
Book: Rescued by C++
Lesson: Getting Started With Functions
[user02@FC4 Lesson10]$