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
Actualizado 2/3/2026
Estrellas
304
Forks
34
quick start

Installation and usage

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

Instalación
$ install --globalskills.sh
Uso

Después de instalarlo, puedes usar este skill ejecutando el siguiente comando en tu terminal:

skills use c-union