Mercurial > octave-nkf
view examples/standalone.cc @ 19507:2e174b5e7703
Fix audiodevinfo, audioinfo, audioread and audiowrite build process
* audiodevinfo.cc: added bits_to_format utility function
* audioinfo.cc, audioread.cc, audiowrite.cc: make sure to not attempt to
include sndfile.h if it is not present
author | Vytautas Jančauskas <unaudio@gmail.com> |
---|---|
date | Wed, 11 Sep 2013 22:05:47 +0300 |
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; }