view examples/helloworld.cc @ 17499:7c14949789ab

Fully single type support & clean the code
author LYH <lyh.kernel@gmail.com>
date Thu, 26 Sep 2013 04:37:36 +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 ();
}