Mercurial > hg > octave-lyh
annotate examples/helloworld.cc @ 6572:8e7148b84b59
[project @ 2007-04-25 04:13:44 by jwe]
author | jwe |
---|---|
date | Wed, 25 Apr 2007 04:14:49 +0000 |
parents | |
children | 4270ded9ddc6 |
rev | line source |
---|---|
6572 | 1 #include <octave/oct.h> |
2 | |
3 DEFUN_DLD (helloworld, args, nargout, | |
4 "Hello World Help String") | |
5 { | |
6 int nargin = args.length (); | |
7 octave_stdout << "Hello World has " << nargin | |
8 << " input arguments and " | |
9 << nargout << " output arguments.\n"; | |
10 return octave_value_list (); | |
11 } |