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 |
The standard edition of Problem Set 4 will move beyond C programming language basics, testing your knowledge of pointers, memory management, file i/o and structs.
2
votes
1
answer
549
views
Pset4 resize/less - rewrite (Hint needed)
I was trying to implement the rewrite method. the code compiles without error but I always get a weird result bitmap.
Here is the code I wrote:
#include <stdio.h>
#include <stdlib.h>
#include "bmp. …
1
vote
Pset4 resize/less - rewrite (Hint needed)
The error was due to bi.biHeight being negative. So to get it running
just changed the declaration of height_in as follows
int height_in = abs(bi.biHeight);