view examples/helloworld.cc @ 14843:7d4f87c75dbb

data.cc: Use Octave coding conventions for cuddling/non-cuddling of parenthesis. * data.cc: Use Octave coding conventions for cuddling/non-cuddling of parenthesis.
author Rik <octave@nomad.inbox5.com>
date Fri, 06 Jul 2012 09:34:35 -0700
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 ();
}