view examples/helloworld.cc @ 18990:b517b08d2e24

maint: Merge gui-release to default.
author Rik <rik@octave.org>
date Tue, 05 Aug 2014 17:53:36 -0700
parents 224e76250443
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 ();
}