• This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #371
    admin
    Keymaster
      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

      [learn_press_profile]

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