• This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #732
    admin
    Keymaster

      Since the number of letters are 26, I guess #define can be introduced. I tried to add but it does not work.

      
      
      #include <cs50.h>
      #include <string.h>
      #include <ctype.h>
      #include <stdio.h>
      #define POINTS 26
      
      
      int compute_score (string word);
      string decide_winner (int score1, int score2);
      
      int POINTS[] = {1, 3, 3, 2, 1, 4, 2, 4, 1, 8, 5, 1, 3, 1, 1, 3, 10, 1, 1, 1, 1, 4, 4, 8, 4, 10};
      
      int main (void)
      {
      
      }
      
      

       

       

      Is there any formatting error?


      Reply


      https://edstem.org/us/courses/176/discussion/1876752[learn_press_profile]

    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.
    Scroll to Top