Skip to content

Fix hexadecimal variable initialization example - #1046

Open
MelancholyMing wants to merge 1 commit into
exercism:mainfrom
MelancholyMing:patch-1
Open

MelancholyMing wants to merge 1 commit into
exercism:mainfrom
MelancholyMing:patch-1

Conversation

@MelancholyMing

Copy link
Copy Markdown

Updated hexadecimal variable initialization from 0x24CD to 0x2419.

Updated hexadecimal variable initialization from 0x24CD to 0x2419.
@github-actions

Copy link
Copy Markdown
Contributor

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@github-actions github-actions Bot closed this Oct 15, 2026
@ahans ahans reopened this Oct 16, 2026
@ahans

ahans commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

@MelancholyMing See the discussion over in the forum.

@MelancholyMing

Copy link
Copy Markdown
Author

Updated hexadecimal variable initialization from 0x24CD to 0x2419.

Comment thread concepts/numbers/about.md
```cpp
int m_morales{9241}; // base 10: 0-9
int a_apaec{0x24CD}; // base 16: 0-9 and A-F
int a_apaec{0x2419}; // base 16: 0-9 and A-F

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per the forum discussion we'd prefer to keep the hexadecimal version and instead adapt the others for consistency. Although the existing 0x2419 is probably due to a typo, it has the nice property of showcasing that hexadecimal also uses letters.

Also please consider Siebenschläfer's comment regarding the other files. Thanks!

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.

2 participants