Skip to main content
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
Results tagged with
Search options answers only not deleted user 1240
1 vote

Pset1 Greedy, Can not get my logic correct

The problem is here: int userInput = get_float(); you're getting a float, the variable you're storing it into should be a float. Because you store it into an int, if you enter 4.2, it's going t …
Irene's user avatar
  • 1,687
1 vote
Accepted

Game Of Fifteen Won function does not exit

What value will the last cell of the board have in the won state? Or, to ask in a different way, where is the blank tile supposed to be when the match is won?
Irene's user avatar
  • 1,687
1 vote
Accepted

Pointers in a function

Nothing in the C standard guarantees how function arguments are read (meaning in which order) or in what order they're going to be stored in memory. …
Irene's user avatar
  • 1,687
4 votes

pset4 recover: recovered images seems to still be corrupted

I agree with Brenda's answer above. But also, you're initialising jpegsFound to 0. That's the value it will have before any signatures were found. Are you sure you want to write to the file when jpeg …
Irene's user avatar
  • 1,687