summaryrefslogtreecommitdiffstats
path: root/.vim/c-support/codesnippets/print_array.cc.noindent
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-04-23 01:20:36 -0400
committerbnewbold <bnewbold@robocracy.org>2010-04-23 01:20:36 -0400
commite0cb5545ccb95cbc6cf03fd256cca622f613ecdf (patch)
tree219ab0ba233d717b90b21968acf51454cd6c9dc5 /.vim/c-support/codesnippets/print_array.cc.noindent
parentf505cc10656d4262dba69aa6ced81dd9024ec592 (diff)
downloadopenwrt-repro-e0cb5545ccb95cbc6cf03fd256cca622f613ecdf.tar.gz
openwrt-repro-e0cb5545ccb95cbc6cf03fd256cca622f613ecdf.zip
removed a bunch of unused vim stuff
Diffstat (limited to '.vim/c-support/codesnippets/print_array.cc.noindent')
-rw-r--r--.vim/c-support/codesnippets/print_array.cc.noindent29
1 files changed, 0 insertions, 29 deletions
diff --git a/.vim/c-support/codesnippets/print_array.cc.noindent b/.vim/c-support/codesnippets/print_array.cc.noindent
deleted file mode 100644
index 52c43d3..0000000
--- a/.vim/c-support/codesnippets/print_array.cc.noindent
+++ /dev/null
@@ -1,29 +0,0 @@
-
-// === FUNCTION ======================================================================
-// Name: print_array
-// Description: Print an array with one dimension.
-// Use
-// print_array<T,w>( *matrix, n1*n2, n2, "matrix" );
-// for
-// T matrix[n1][n2];
-// =====================================================================================
- template <class T, int width>
-void print_array ( T *array, // array to print
- int n, // number of elements to print
- int nrow, // number of elements per row
- string arrayname // array name
- )
-{
- string line(" index | content\n ------+-");
-
- cout << "\n\n array \"" << arrayname << "\", length " << n << endl << endl;
- cout << line.append(width*nrow, '-');
- for ( int i=0; i<n; i+=1 ) {
- if( i%nrow == 0 )
- cout << endl << setw(6) << i << " | ";
- cout << "" << setw(width) << fixed << setprecision(2) << array[i];
- }
- cout << endl << endl;
- return ;
-} // ---------- end of function print_double_array ----------
-