Mercurial > octave
comparison src/pr-output.cc @ 1728:42b4f904f1af
[project @ 1996-01-09 11:36:01 by jwe]
author | jwe |
---|---|
date | Tue, 09 Jan 1996 11:41:43 +0000 |
parents | 4afce032330e |
children | a02f140ed897 |
comparison
equal
deleted
inserted
replaced
1727:ba9b08842dbe | 1728:42b4f904f1af |
---|---|
26 #endif | 26 #endif |
27 | 27 |
28 #include <cfloat> | 28 #include <cfloat> |
29 #include <cmath> | 29 #include <cmath> |
30 #include <cstring> | 30 #include <cstring> |
31 | |
32 #include <string> | |
31 | 33 |
32 #include <iostream.h> | 34 #include <iostream.h> |
33 #include <strstream.h> | 35 #include <strstream.h> |
34 | 36 |
35 #include "CMatrix.h" | 37 #include "CMatrix.h" |
1513 if (pr_as_read_syntax && nstr > 1) | 1515 if (pr_as_read_syntax && nstr > 1) |
1514 os << "[ "; | 1516 os << "[ "; |
1515 | 1517 |
1516 for (int i = 0; i < nstr; i++) | 1518 for (int i = 0; i < nstr; i++) |
1517 { | 1519 { |
1518 char *row = chm.row_as_string (i); | 1520 string tstr = chm.row_as_string (i); |
1521 const char *row = tstr.c_str (); | |
1519 | 1522 |
1520 if (pr_as_read_syntax) | 1523 if (pr_as_read_syntax) |
1521 { | 1524 { |
1522 char *tmp = undo_string_escapes (row); | 1525 char *tmp = undo_string_escapes (row); |
1523 | 1526 |