Mercurial > hg > octave-nkf
annotate examples/helloworld.cc @ 18174:b72bcf5f78cc stable release-3-8-0
Version 3.8.0 released.
* configure.ac (OCTAVE_VERSION): Now 3.8.0.
(OCTAVE_RELEASE_DATE): Now 2013-12-27.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 27 Dec 2013 16:59:04 -0500 |
parents | 224e76250443 |
children |
rev | line source |
---|---|
6572 | 1 #include <octave/oct.h> |
2 | |
3 DEFUN_DLD (helloworld, args, nargout, | |
17791
224e76250443
Use GNU style coding conventions for code in examples/
Rik <rik@octave.org>
parents:
16867
diff
changeset
|
4 "Hello World Help String") |
6572 | 5 { |
6 int nargin = args.length (); | |
16867
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
12174
diff
changeset
|
7 |
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
12174
diff
changeset
|
8 octave_stdout << "Hello World has " |
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
12174
diff
changeset
|
9 << nargin << " input arguments and " |
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
12174
diff
changeset
|
10 << nargout << " output arguments.\n"; |
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
12174
diff
changeset
|
11 |
6572 | 12 return octave_value_list (); |
13 } |