view examples/helloworld.cc @ 6787:963a19576024

[project @ 2007-07-23 19:23:39 by jwe]
author jwe
date Mon, 23 Jul 2007 19:23:40 +0000
parents 8e7148b84b59
children 4270ded9ddc6
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 ();
}