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 |
resize.c, one of the assignments in Problem Set 4, will require you to scale a bitmap image by a certain factor (making it 2, 3, or n times as large).
0
votes
1
answer
50
views
Pset 4-resize.c problem with clang
I have been trying to solve an issue I'm having, when I try to compile my resize program, but I get the same error again and again and I can't really understand what's going on. … In the screenshot you can see the output of make, when I type in make resize.
http://prntscr.com/b1cnvs
Thanks a lot.
Edit:
Here is my code.
http://pastebin.com/w3zhiXJi …
0
votes
1
answer
106
views
resize.c problem with padding
/copy n infile outfile\n");
return 1;
}
// remember filenames
char* infile = argv[2];
char* outfile = argv[3];
// remembers factor to resize
int n = atoi(argv[1]);
if (n <= 0 || n > 100)
{
printf … / write outfile's BITMAPINFOHEADER
fwrite(&binew, sizeof(BITMAPINFOHEADER), 1, outptr);
// iterate over infile's scanlines
for (int i = 0, biHeight = abs(biold.biHeight); i < biHeight; i++)
{
// resize …