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
Mis à jour 02/03/2026
Étoiles
304
Forks
34
quick start

Installation and usage

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

Installation
$ install --globalskills.sh
Utilisation

Après l'installation, vous pouvez utiliser ce skill en exécutant la commande suivante dans votre terminal :

skills use c-union