0

So I'm doing whodunit in pset4 and per the walkthrough by Zamyla, I should do this comparison for red so that I can change the colour. However I'm getting this error when compiling: enter image description here

Help please, thanks.

2
  • hexadecimal values should be preceded with 0x as in 0x0000ff. – Kareem May 15 '15 at 2:00
  • Salam Kareem, Thanks for that but I already tried it with 0x0000ff but it didn't change the values, although the error goes away – AU786 May 16 '15 at 10:51
0

Good evening!

This is a bit incorrect way, colour contains 3 bytes ,if you want to read only red colour from triple then it should be like this: triple.byte_1 = 0x00 triple.byte_2 = 0x00 triple.byte_3 = 0xff

0

Thanks for all the replies. I found what I was doing wrong. I had put the "If" condition before fread. I need to put it after fread and use 0x to start with.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .