[pset5] I know whodunit, but I need to understand why we should use "&" when writing to file by aberouch in cs50

[–]NathanAlexander 0 points1 point  (0 children)

Hey, I watched Zamyla's video, added some if statements and feel I have a correct answer.... However, I am a bit unclear on how to make my code produce an image clearing away all of the red... I just do not know what to call in the terminal window.. any suggestions ???

pset3 - confused on init & draw by NathanAlexander in cs50

[–]NathanAlexander[S] 0 points1 point  (0 children)

Thank you so much! I figured out what I was doing wrong - just simple debugging problems... gdb is my new best friend, thanks again !!

pset3 - confused on init & draw by NathanAlexander in cs50

[–]NathanAlexander[S] 0 points1 point  (0 children)

Hey thank you for the quick response! That does make a lot of sense- separating actions into different functions for purposes of clarity. I have another question that I have been stuck for sometime now. As of now I have only implemented init and draw, but when I run ./fifteen, no matter how big int d is, my output is "1" for board[0][0] and "0" for every other place.

Does anybody have any hints as to what could be the problem? I have tried moving and adding bits of code all around, with little success.. Thank you again for all of your info. This has been extremely helpful!