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