Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lang/union.md): 增加联合体的初始化 #5436

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ClassicMin
Copy link

@ClassicMin ClassicMin commented Mar 1, 2024

  • 我已认真阅读贡献指南 (contributing guidelines) 和社区公约 (code of conduct),并遵循了如何参与页及格式手册页的相应规范。

add a example
Copy link

welcome bot commented Mar 1, 2024

感谢你对 OI Wiki 的关注!记得检查是否遵守了格式规范,听说和项目风格统一的 Pull Request 会更容易被 Merge~

Copy link
Member

@Tiphereth-A Tiphereth-A left a comment

Choose a reason for hiding this comment

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

long long y;
};

MyUnion x = {.y = 34};
Copy link
Member

Choose a reason for hiding this comment

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

Designated initializers 是 C++ 20 的语法吧,考虑到 C++ 20 目前在算法竞赛的普及程度,也许补充一下老版本能用的比较好 🤔

@HeRaNO HeRaNO changed the title Update union.md feat(lang/union.md): 增加联合体的初始化 Mar 10, 2024
@HeRaNO
Copy link
Collaborator

HeRaNO commented Mar 10, 2024

@ClassicMin

  1. 请像这样命名你的 title
  2. 请通过蓝色高亮链接阅读、理解了指南和公约后,将 Pull Request 描述中的 [ ] 替换为 [x],以通过合入检查,你可以通过 Edit 来编辑你的 Pull Request 描述

@Great-designer

This comment has been minimized.

Copy link

github-actions bot commented May 5, 2024

你好 👋

这个 Pull Request 已经 30 天未响应。
如果此 PR 在将来的 14 天内仍未恢复活动,它将被关闭。

感谢理解与支持。

@github-actions github-actions bot added the No Response / 失去响应 该 Pull Request 已经失去响应 label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants