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 831125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:09:12+00:00 2026-05-15T04:09:12+00:00

enum ID // IDs { ID_HEADER = 0, // ID 0 = headers #include

  • 0
enum    ID                           // IDs
    {
    ID_HEADER          = 0,         // ID 0 = headers
    #include "DATA.CSV"
    ID_LIMIT
    };

I inherited some code here…..

Looking at “DATA.CSV” I see all the ID’s used to populate the enum in column B, along with other data.

My question:
How does the enum know that it is using “column B” to retrieve it’s members? There must be some other logic in the application yet I don’t see it. What else should I look for?

Thanks.

  • 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-15T04:09:13+00:00Added an answer on May 15, 2026 at 4:09 am

    A csv file looks something like this:

    foo, bar, zod
    

    so including it expands to:

    enum    ID                           // IDs
    {
    ID_HEADER          = 0,         // ID 0 = headers
    foo, bar, zod
    ID_LIMIT
    };
    

    For this to really work, you would either need a trailing comma in the CSV file, or a comma preceding ID_LIMIT. I don’t see where the “column B” you mention in your question comes into it.

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

Sidebar

Related Questions

My enum class PlayerPosition holds all of the positions on a football field (QB,
I use the enum to make a few constants: enum ids {OPEN, CLOSE}; the
Most projects have some sort of data that are essentially static between releases and
I've implemented a variant of the very cunning answer here for generating unique IDs
C++ enum question. So I have a list of files, and their IDs that
Enum is in the java.lang.Enum , and Object is in the java.lang.Object . So,
enum Answer : int { Yes = 1, No = 2 } Answer answer
enum AccessSource { AccessSourceNull = 0x00000001, AccessSourceSec = 0x00000002, AccessSourceIpo = 0x00000004, AccessSourceSSA =
enum Fruit { Banana, Orange, Strawberry ... ... // etc, very long enum }
enum color = {blue, black=3, yellow=3}; 2 colors have the value 3, is it

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.