view examples/helloworld.cc @ 6776:d388a35a9481

[project @ 2007-07-17 15:22:47 by dbateman]
author dbateman
date Tue, 17 Jul 2007 15:22:47 +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 ();
}