On 12/26/2015 05:15 PM, Karthikeyan wrote:

>> The answer is nine chapters later. :) (Use readln() and strip() (or
>> chomp())).
>>
>>   http://ddili.org/ders/d.en/strings.html
>>
>> Ali
>
> Many thanks Ali. The book says ctrl + D to end input. But I used two
> enters to get the output. Any idea why?

I guess that means that my understanding was not portable. It requires Ctrl-D on my console environment on Linux. No matter how many Enters I enter :p they become parts of the same string.

Ali

Reply via email to