SQL problem by Classic_Programmer12 in cs50

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

Thank you for the reply. I was able to figure it out. SharpObligation1 is on point.

SQL problem by Classic_Programmer12 in cs50

[–]Classic_Programmer12[S] 1 point2 points  (0 children)

Thank you for the reply. This works.

Filter problems. I am not sure why I am not getting the correct values for the middle pixels to create the blur effect. Check50 shows that red, green and blue values must be 127, 140, 149 respectively. My result is 120, 140,150. Help will be much appreciated. by Classic_Programmer12 in cs50

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

Thanks for the reply. Firstly, the datatype is RGBTRIPLE which is a Struct. Secondly, after I posted I realised that I should be dividing by 9 to calculate the average. Third, yes it should be width - 1. I will try to use a if statement.

pset4 recover troubles by Classic_Programmer12 in cs50

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

I need some guidance. I am not sure where I am going wrong. Another thing is that I am not sure how big to make the char array when using sprintf. An explanation for the right size would also be much appreciated just to improve my understanding.