root/trunk/src/tutorials/examples/printf_array_possible_bug/test.d

Revision 6, 424 bytes (checked in by jcc7, 3 years ago)

Made more progress in developing convertToWiki and added some files.

Line 
1 import std.stdio;
2 import std.string;
3
4 void main()
5 {
6     char[][] s;
7 //    s ~= "First line.";
8 //    s ~= "Second line.";
9 //    s ~= "Third line.";
10
11     for(int i=1; i < 9000; i++)
12     {
13         s ~= toString(i) ~ " line *********************************************************** ";
14     }
15
16
17     for(int i=0; i < s.length; i++)
18     {
19         printf(s[i] ~ \r\n);
20 //        writefln(s[i]);
21     }
22    
23 }
Note: See TracBrowser for help on using the browser.