Discussion:
input to hangman using ./hangman <in1.txt
(too old to reply)
Hammad Imad
2004-01-24 19:31:12 UTC
Permalink
The output to my program works fine when i run it normally, however if i
try using the input as <in1.txt the output becomes incorrect.
It is because once i use the in1.txt as input when the program types
my guess is:

no letter is given and therefore the picture is drawn on that same line!
if in my code i make it skip a line after
my guess is:
then when i enter a letter it will be on the line beneath it.

So what im trying to say is that since my output is working perfectly as
long as i dont use the file <in.txt as input is it ok?
Moayad Fahim Ali
2004-01-25 18:36:00 UTC
Permalink
Hi Hammad,

Ideally, using ./hangman < in1.txt or simply inputting the word and
letters using your keyboard should be the same and give identical
response. In your case, I'm guessing that it may have something to do with
the way you are reading in the input.

As mentioned, if for any reason the automarker fails, a TA will be looking
at the failed output and will decide if you're output is wrong or right.
Everything is not decided by the automarker.

Good luck.
Post by Hammad Imad
The output to my program works fine when i run it normally, however if i
try using the input as <in1.txt the output becomes incorrect.
It is because once i use the in1.txt as input when the program types
no letter is given and therefore the picture is drawn on that same line!
if in my code i make it skip a line after
then when i enter a letter it will be on the line beneath it.
So what im trying to say is that since my output is working perfectly as
long as i dont use the file <in.txt as input is it ok?
Loading...