view examples/helloworld.cc @ 12804:a44ec6d33cc9

codesprint: Wrote 5 tests for polyout.m
author David Wells <drwells@vt.edu>
date Sat, 16 Jul 2011 13:13:19 -0500
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 ();
}