Talk:Input/Output for lines of text: Difference between revisions
Content added Content deleted
(clarification) |
No edit summary |
||
Line 13: | Line 13: | ||
(See also the discussion section above this one, which demonstrates how that sentence can be ambiguous/confusing.) --[[User:Smls|Smls]] ([[User talk:Smls|talk]]) 21:53, 13 August 2016 (UTC) |
(See also the discussion section above this one, which demonstrates how that sentence can be ambiguous/confusing.) --[[User:Smls|Smls]] ([[User talk:Smls|talk]]) 21:53, 13 August 2016 (UTC) |
||
:This is an old one, but I agree. Maybe the task should be read an integer, read that many lines, then output those lines? That way it is just an simple task to show IO.[[User:Garbanzo|Garbanzo]] ([[User talk:Garbanzo|talk]]) 06:11, 29 August 2021 (UTC) |
:This is an old one, but I agree. Maybe the task should be read an integer, read that many lines, then output those lines? That way it is just an simple task to show IO.[[User:Garbanzo|Garbanzo]] ([[User talk:Garbanzo|talk]]) 06:11, 29 August 2021 (UTC) |
||
==Quizá se trate de algo trivial== |
|||
Cuando el enunciado señala que la entrada se realiza a través del STDIN, y la salida, por el STDOUT, debería ocurrir algo como esto?: |
|||
$ echo 3 | my_program |
|||
$ echo "Hello" | my_program |
|||
Hello |
|||
$ echo "hello world" | my_program |
|||
hello world |
|||
$ echo "Pack my Box with 5 dozen liquor jugs" | my_program |
|||
Pack my Box with 5 dozen liquor jugs |
|||
$ echo "otra cosa" | my_program |
|||
warning: I need the number of lines to enter! |