Questions tagged [eof]
The eof tag has no usage guidance.
11
questions
0
votes
1
answer
185
views
pset5 recover video
In the video offering tips for the "Recover" assignment, a graphic is shown, which depict the blocks of memory containing the jpeg files. The last block of memory is shown as "EOF" and appears to not ...
0
votes
1
answer
50
views
Receiving EOF when I execute check50 (Readability)
I keep getting EOF when I check50, but my program runs fine. It gives the correct output for every text input. I can not find a solution here. It looks fine, but when I run the check50 command I get ...
0
votes
1
answer
738
views
I keep getting "expected EOF" when I use check50
this is the message
identifies 4111111111111113 as INVALID
expected EOF, not "INVALID"
this is the code
#include <cs50.h>
#include <stdio.h>
#include <string.h>
#include &...
0
votes
1
answer
78
views
Still cannot get EOF in pset3
guys.
In pset3 we have a find.c which generates a haystack. When you run ./find, then it just keep asking for integer unless you press Ctrl+D (call a EOF). But we didn't even need to define such a ...
2
votes
1
answer
59
views
Can somebody please help me to better understand constant variables, and eof, and how they relate to pset3?
Can somebody please help me better understand what constant variables can be used for? I am currently on pset3 and i noticed that a constant variable called MAX is used in find.c and gets 65536...but ...
1
vote
1
answer
301
views
Pset 4 Recover Segmentation Fault
When I try to run this program I get a segmentation fault. I think it may have something to do with how I'm checking for the end of the file, although I'm not sure how to go about finding the specific ...
0
votes
2
answers
154
views
speller, EOF question
I'm answering Question 4 and I think I have a good grasp of how Main reads each word.
My question is specifically about "...!=EOF" that is mentioned many times.
I thought EOF is End of File? In ...
0
votes
1
answer
392
views
EOF command not working
I'm in pset3 and have already written the code and it compiled successfully. However when running find.c and providing the values, Ctrl+d won't work. I get no response or feedback whatsoever so I just ...
0
votes
1
answer
142
views
pset4 resize premature end of file encountered
This is extremely frustrating. I've been having header problems for a while, getting various error messages. However, using xxd I can see that when I run resize with n=2, biSizeImage is indeed 120, ...
8
votes
1
answer
917
views
Help me write sexier code : ) counters as pointers, buffering files, feof, sprintf [pset4.recover]
I have completed the pset, and am happy with my code and how it works. But had some design questions so that I know for future programs what and why to use.
I understand that it does not really ...
0
votes
2
answers
632
views
helpers.c: EOF not working
I have made find.c and coded binary search in helpers.c, so when I run find like
./find 42
and start entering sorted values like
haystack[0] = 42
haystack[1] = 43
haystack[2] = 44
haystack[3] = ...