view examples/helloworld.cc @ 9783:119d97db51f0

avoid repeated table init in bsxfun
author Jaroslav Hajek <highegg@gmail.com>
date Sun, 08 Nov 2009 21:14:23 +0100
parents 4295d634797d
children db1f49eaba6b
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 ();
}