Skip to main content
Tweeted twitter.com/StackCodeReview/status/1256463464303865856
edited title
Link
StefanD
  • 43
  • 1
  • 5

A few questions regarding a CS50 pset4 filter - Image Filters in C program

edited title
Link
StefanD
  • 43
  • 1
  • 5

A few questiosquestions regarding a C pset from CS50program

added 114 characters in body
Source Link
StefanD
  • 43
  • 1
  • 5
  1. Is there any way of writing the edge function code cleaner and more efficient for a beginer

  2. In the blur function it took me waaaaaay to long to make all the for loops work and I almost gave up. Is there a good way to find write this type of loops easier if I clearly know what to do(ie: I know I need to access the i - 1 to i + 1 element but how do I write this without going out of bounds). I could probably rewrite the function using the 0 padding as well, like for the edge one but this seems cleaner.

  1. Is there any way of writing the edge function code cleaner and more efficient for a beginer

  2. In the blur function it took me waaaaaay to long to make all the for loops work and I almost gave up. Is there a good way to find write this type of loops easier if I clearly know what to do(ie: I know I need to access the i - 1 to i + 1 element but how do I write this without going out of bounds)

  1. Is there any way of writing the edge function code cleaner and more efficient for a beginer

  2. In the blur function it took me waaaaaay to long to make all the for loops work and I almost gave up. Is there a good way to find write this type of loops easier if I clearly know what to do(ie: I know I need to access the i - 1 to i + 1 element but how do I write this without going out of bounds). I could probably rewrite the function using the 0 padding as well, like for the edge one but this seems cleaner.

added 244 characters in body; edited title
Source Link
StefanD
  • 43
  • 1
  • 5
Loading
Source Link
StefanD
  • 43
  • 1
  • 5
Loading