view examples/helloworld.cc @ 17514:96cf8ee3440e

text.m: Match variable names to documentation. * scripts/plot/text.m: Improve docstring. Rename variable 'label' to 'string' to match docstring.
author Rik <rik@octave.org>
date Wed, 25 Sep 2013 17:21:31 -0700
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 ();
}