view examples/helloworld.cc @ 14201:606e634fe951 stable

Added tag rc-3-6-0-1 for changeset 64d9f33313cc
author John W. Eaton <jwe@octave.org>
date Thu, 12 Jan 2012 15:38:08 -0500
parents db1f49eaba6b
children be41c30bcb44
line wrap: on
line source

#include <octave/oct.h>

DEFUN_DLD (helloworld, args, nargout,
  "Hello World Help String")
{
  int nargin = args.length ();
  octave_stdout << "Hello World has " << nargin
        << " input arguments and "
        << nargout << " output arguments.\n";
  return octave_value_list ();
}