view examples/helloworld.cc @ 14711:f5c3de9502b2

Fix compilation error on newer compilers * eigs-base.cc: Remove "static" keyword. Doesn't belong in template instantiations.
author Alexander Hansen <alexanderk.hansen@gmail.com>
date Fri, 01 Jun 2012 13:20:49 -0400
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 ();
}