• This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #371
      typedef struct
          string name; 
          int votes; 
          bool eliminated; 

      Unable to figure out the purpose of typedef struct.

      All I see is it has defined a variable named name as string type, votes as int type, and eliminated as bool type. The same could have been done without typedef struct.

      Runoff Election Project: type def


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