view examples/helloworld.cc @ 17524:534247e14b03

Merge the official development
author LYH <lyh.kernel@gmail.com>
date Fri, 27 Sep 2013 03:01:11 +0800
parents be41c30bcb44
children
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 ();
}