Mercurial > octave-nkf
view examples/standalone.cc @ 19639:d258070914ef gui-release
open file directly without edit command when editing a function from editor
* file-editor-tab.cc (handle_context_menu_edit): append .m to file name if
necessary, emit new signal to editor for the file open request
* file-editor-tab.h: new signal requesting to open a file
* file-editor.cc (add_file_editor_tab): connect new request-open-signal to
the already existing slot for opening a file
author | Torsten <ttl@justmail.de> |
---|---|
date | Thu, 22 Jan 2015 06:52:37 +0100 |
parents | be41c30bcb44 |
children |
line wrap: on
line source
#include <iostream> #include <octave/oct.h> int main (void) { std::cout << "Hello Octave world!\n"; int n = 2; Matrix a_matrix = Matrix (n, n); for (octave_idx_type i = 0; i < n; i++) for (octave_idx_type j = 0; j < n; j++) a_matrix(i,j) = (i + 1) * 10 + (j + 1); std::cout << a_matrix; return 0; }