From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: text_io and grid printing Date: Thu, 17 May 2018 18:43:30 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <99bb4ea5-89be-4984-8785-574cb8e4a410@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 17 May 2018 16:43:30 -0000 (UTC) Injection-Info: h2725194.stratoserver.net; posting-host="4b6756fbfa3b187bdbd8ff0caa44916a"; logging-data="31313"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ybeGh6b5bRKk3Qra9VVmaHjsG/ezBX00=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 Cancel-Lock: sha1:uJa4/s9ypGx1PQynLYufwKUMPc0= In-Reply-To: <99bb4ea5-89be-4984-8785-574cb8e4a410@googlegroups.com> Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:52393 Date: 2018-05-17T18:43:30+02:00 List-Id: On 05/17/2018 04:51 PM, Mehdi Saada wrote: > I wanted to use set_col and set_line to print things as in a grid, (to print a matrix) but it seems I was wrong ? > Set_Col (1); Put ("1"); Set_Col (2); Put ("2"); Set_Col (3); Put ("3"); > Gives "123" > but Set_Col (2); Put ("2"); Set_Col (1); Put ("1"); Set_Col (3); Put ("3"); > gives > 2 > 1 3 It's probably best to forget that Text_IO has those operations. -- Jeff Carter "He didn't get that nose from playing ping-pong." Never Give a Sucker an Even Break 110