summaryrefslogtreecommitdiff
path: root/hello.cxx
blob: c105d179ad9a75142aa3241aef009434ee475a6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// file: hello.cxx -*- C++ -*-

#include <iostream>

#include <hello/hello>

using namespace std;

int
main (int argc, char* argv[])
{
  if (argc < 2)
  {
    cerr << "usage: hello <name>..." << endl;
    return 1;
  }

  using hello::say;

  for (int i (1); i != argc; ++i)
    say (argv[i]);
}