Mercurial > hg > octave-nkf
annotate examples/helloworld.cc @ 6909:fc55a5e1760b ss-2-9-14
[project @ 2007-09-17 20:47:40 by jwe]
author | jwe |
---|---|
date | Mon, 17 Sep 2007 20:47:41 +0000 |
parents | 8e7148b84b59 |
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 } |