Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
4
votes
Accepted
How do the headers in copy.c update on pset4?
In your example, bf and bi are pointers to two different structures that hold several variables each. These commands will actually write out the indicated full header structures out to the files. Let …
0
votes
Accepted
Resize - output files look right but check50 gives errors
When you modify the original headers instead of creating a copy and modifying them for output, you run into the risk of forgetting that some of the fields have been modified for the output file and are …
0
votes
Header Problem in Resize
Do you think it could have something to do with writing the headers out before you calculate the new values? …
1
vote
Accepted
Changing file header- Invalid or unsupported format
Before you did the freads to load the new headers, did you reset the file pointer to the beginning of the file? If not, then it isn't reading the headers. … Instead, it is reading image data into the headers. In other words, the new headers are filled with garbage data. …
0
votes
Accepted
pset4, resize. Why does my change of headers create images that say invalid/unsupported imag...
"Ready, Fire, Aim!"
Look at the following code:
// read infile's BITMAPFILEHEADER
BITMAPFILEHEADER bf;
BITMAPFILEHEADER new_bf = bf;
fread(&bf, sizeof(BITMAPFILEHEADER), 1, inptr);
The first lin …
1
vote
No such file or directory #include <cs50.h>
The unknown type string error results because the cs50.h file wasn't found for the include statement.
What is your development environment? You need to follow the instructions given early in the cla …
1
vote
PSET5 - Issues with initialization of pointers in LOAD function
Look at the following code:
current = root;
for (int i = 0; i < NB_NODES; i++)
{
recursive_free(current);
recursive_free(root);
}
You free all of the children under current and then try to …