Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6701471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:56:17+00:00 2026-05-26T06:56:17+00:00

Not really sure what’s causing this, all I’ve found on google is that forgetting

  • 0

Not really sure what’s causing this, all I’ve found on google is that forgetting a semi-colon at the end of my struct causes this but I have one there.

Here’s the chunk of code…

#include <stdio.h>
#include <string.h>

#define NAME_LENGTH 20
#define BOOK_NAME_LEN 50
#define AUTHOR_NAME_LEN 30
enum bookStatus {CHECKED_IN, CHECKED_OUT, UNDER_REPAIR, LOST}
enum patronStatus {ACTIVE, INACTIVE}
struct Book{
        char title[BOOK_NAME_LEN];
        char author[AUTHOR_NAME_LEN];
        enum bookStatus status;
};
struct Name{
        char first[NAME_LENGTH];
        char last[NAME_LENGTH];
};
struct Patron{
        int numBooksOut;
        struct Name name;
        struct Book books[50];
        enum patronStatus status;
};
struct Collection{
        struct Book book;
        char title[BOOK_NAME_LEN];
        char author[AUTHOR_NAME_LEN];
        int id, year;
        enum bookStatus status;
};
struct Library{
        int totalPatrons, totalBooks;
        struct Patron patrons[50];
        struct Collection collection[50];
};
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:56:17+00:00Added an answer on May 26, 2026 at 6:56 am

    The enums need a semicolon, too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not really sure how to google this one . I would like to
Not really sure where to start on this one and a day of google
So i'm not really sure why this is happening but I'm running through some
I'm not really sure how to title this question but basically I have an
Sorry, I'm not really sure of the right way to ask this one so
I know this is possible but I'm not really sure where to start. Has
I feel like there's a simple solution to this, but I'm not really sure
I'm not really sure what's going on here. This is what I have in
I'm not really sure how to explain this so here is a picture: Window
I'm not really sure if the questions that ask for opinion are allowed here,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.