home/categories/frontend/ecnu-icalk-autoskill-skillbank-users-chinese-gpt3-5-8-glm4-7-c-union结构体多别名访问实现-skill-md
frontenddevelopment

c-union

使用union实现C++结构体,支持通过xyz、rgb及数组v[3]三种方式访问同一内存,并采用typedef tagFoo {} Foo;的命名风格。

ECNU-ICALK
maintainer
ECNU-ICALK
更新於 2026/3/2
星標
304
分支
34
quick start

Installation and usage

使用union实现C++结构体,支持通过xyz、rgb及数组v[3]三种方式访问同一内存,并采用typedef tagFoo {} Foo;的命名风格。

安裝
$ install --globalskills.sh
使用

安裝後,您可以透過在終端機執行以下指令來使用此技能:

skills use c-union