Changeset 538 for library/doc/html/itfile.html
- Timestamp:
- 08/16/09 18:14:04 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/doc/html/itfile.html
r472 r538 5 5 <link href="doxygen.css" rel="stylesheet" type="text/css"> 6 6 </head><body> 7 <!-- Generated by Doxygen 1.5. 9-->7 <!-- Generated by Doxygen 1.5.8 --> 8 8 <script type="text/javascript"> 9 9 <!-- … … 65 65 <span class="keyword">using namespace </span>itpp; 66 66 67 <span class="keywordtype">int</span> main() 68 { 69 <span class="comment">// Declare the it_file class</span> 70 it_file ff; 67 <span class="keywordtype">int</span> main() { 68 <span class="comment">// Declare the it_file class</span> 69 it_file ff; 71 70 72 <span class="comment">// Open a file with the name "it_file_test.it"</span>73 ff.open(<span class="stringliteral">"it_file_test.it"</span>);71 <span class="comment">// Open a file with the name "it_file_test.it"</span> 72 ff.open ( <span class="stringliteral">"it_file_test.it"</span> ); 74 73 75 <span class="comment">// Create some data to put into the file</span>76 vec a = linspace(1, 20, 20);74 <span class="comment">// Create some data to put into the file</span> 75 vec a = linspace ( 1, 20, 20 ); 77 76 78 <span class="comment">// Put the variable a into the file. The Name("a") tells the file class</span>79 <span class="comment">// that the next variable shall be named "a".</span>80 ff << Name(<span class="stringliteral">"a"</span>) << a;77 <span class="comment">// Put the variable a into the file. The Name("a") tells the file class</span> 78 <span class="comment">// that the next variable shall be named "a".</span> 79 ff << Name ( <span class="stringliteral">"a"</span> ) << a; 81 80 82 <span class="comment">// Force the file to be written to disc. This is useful when performing</span>83 <span class="comment">// iterations and ensures that the information is not stored in any cache</span>84 <span class="comment">// memory. In this simple example it is not necessary to flush the file.</span>85 ff.flush();81 <span class="comment">// Force the file to be written to disc. This is useful when performing</span> 82 <span class="comment">// iterations and ensures that the information is not stored in any cache</span> 83 <span class="comment">// memory. In this simple example it is not necessary to flush the file.</span> 84 ff.flush(); 86 85 87 <span class="comment">// Close the file</span>88 ff.close();86 <span class="comment">// Close the file</span> 87 ff.close(); 89 88 90 <span class="comment">// Exit program</span>91 <span class="keywordflow">return</span> 0;89 <span class="comment">// Exit program</span> 90 <span class="keywordflow">return</span> 0; 92 91 } 93 92 </pre></div><p> … … 104 103 a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20] 105 104 </pre></div> </div> 106 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 5 00:06:502009 for mixpp by 105 <hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 16 17:58:18 2009 for mixpp by 107 106 <a href="http://www.doxygen.org/index.html"> 108 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5. 9</small></address>107 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> 109 108 </body> 110 109 </html>