# struct ###### tags: `C++Book` 用於封裝多個變數 指能夠結合多個彼此相關的變數在一個名稱之下,且可以包含數個不同資料型態的變數。換句話說,結構是一種使用者自定的型態,它可將不同的資料型態串在一起。 ```cpp struct StructName { 欄位1; 欄位2; …. 欄位n; } ``` struct內也可以其他的struct
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up