view examples/helloworld.cc @ 6772:315bc7c8f9b5

[project @ 2007-07-10 09:51:39 by dbateman]
author dbateman
date Tue, 10 Jul 2007 09:54:23 +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 ();
}