csev / cc4e

C Programming for Everybody
https://www.cc4e.com/
Other
292 stars 92 forks source link

Slides issues from discussions #66

Closed srcatto closed 1 year ago

srcatto commented 1 year ago

Student report, cc4e/lectures/KR-1.pptx. My edit in (...).

With deep respect for Dr. Chuck. In reviewing the presentation, I found the following errors:

  1. On slides 5, 9 in the listings kr_01_01.c, kr_01_4.c "import" is used instead of the keyword "include"
  2. On slide 5 in the listing kr_01_01.c, a double slash (%s\\n) is inserted in line 7 which breaks the '\n' operator
  3. On slide 10 in listing kr_01_05.c, there is a useless variable len in the py_len() function, it can be safely removed. (i is returned, len in not used) ( chg int i, len=0; to int i; chg for(i=0;self[i];i++) len=i; to for(i=0;self[i];i++); suggest adding space after ; for readability, for(i=0; self[i]; i++); )
csev commented 1 year ago

Thanks - I updated the sample code, the slides, and the video. Thanks!