Skip to content

Add missing function declarations to resistor_color.h#1470

Closed
user1-prajwal wants to merge 1 commit intoexercism:mainfrom
user1-prajwal:fix-resistor-header
Closed

Add missing function declarations to resistor_color.h#1470
user1-prajwal wants to merge 1 commit intoexercism:mainfrom
user1-prajwal:fix-resistor-header

Conversation

@user1-prajwal
Copy link

@user1-prajwal user1-prajwal commented Feb 21, 2026

The header file currently contains an empty enum definition,
which may be confusing for contributors working locally.

Fixes #1095

This change adds:

  • Enum values for resistor colors
  • Function declarations for color_code() and colors()

This improves clarity and aligns the header with the expected API.

@ryanplusplus
Copy link
Member

Hey @user1-prajwal, the intent is for the user to determine what should be in the header as part of the exercise.

@user1-prajwal
Copy link
Author

Thanks for the Clarification! I misunderstood the intent of the exercise earlier. I appreciate you taking the time to explain it.

@wolf99 wolf99 closed this Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue in resistor-color problem

4 participants