這裏是爲「阿達軟件工程師」的例子程序源代碼:這是阿達教科書的例子垃圾嗎?
http://www.springer.com/cda/content/document/cda_downloaddocument/978-1-84882-313-6_programs.zip
提取到C04陣列後/辯解
$ gnatmake justify.adb
運行證明,並比較輸出與「example.txt」是輸入內容。 我得到的輸出是交織線,與理由無關。 如果我保存的輸出:
$ justify > result.txt
然後看着那我可以斷定,有些行寫在那裏ontop的其他終端的。 但即使我忽略了這個問題,結果也很難稱之爲理由。
我的問題: 你會得到相同的意外輸出嗎? 你得到的輸出是否類似於正當性?
請注意,輸入也隨源提供!所以我甚至不想打破這個計劃。
輸出我得到的終端上:
The quicke quick brown fox jumped over the lazy dog. brown fox jumped over the lazy dog. ThequickbrownfoxjumpedoverthelazydogThequickbrownfoxjumpedov The quickThe quick brown fox jumped over the lazy dog. The quick brown foxed over the lazy dog. The quick brown fox jumped over dog. The quick brown fox jumped over the lazy Thee slow gray wolf skipped over the frisky cat. The slow grayray wolf skipped over the frisky cat. The slow gray wolfed over the frisky cat. The slow gray wolf skippedky cat. The slow gray wolf skipped over the The slow gray wolf skipped over the frisky cat.
我重定向後有輸出:
The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. ThequickbrownfoxjumpedoverthelazydogThequickbrownfoxjumpedov The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The slow gray wolf skipped over the frisky cat. The slow gray wolf skipped over the frisky cat. The slow gray wolf skipped over the frisky cat. The slow gray wolf skipped over the frisky cat. The slow gray wolf skipped over the frisky cat. The slow gray wolf skipped over the frisky cat. The slow gray wolf skipped over the frisky cat.
難道這應該是理由? 這個問題是否與我的機器/系統/終端/外殼有關,或者是其他地方的問題?
編譯,鏈接,並且與Windows XP上的GNAT GPL 2012完全一樣。 –