Shortcut for chapter specific information

Tuesday, April 19, 2011

7th Writing in insertion sort (C)

Not perfect.  The algorithm is ok.  But to be good, you can't write code with any mistakes on paper.
-What was my mistake?
  • Mistaken stdlib as stdio for the library of print. 
  • #define -> #defined
  • printf -> print 
  • In C-array, you naive-initialize it like  A[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}. 
    • Contrast this to perl
Well, time to try again.
33_P

No comments:

Post a Comment