のむログ

技術メモ / 車 / 音楽 / 雑記 / etc...

こちらは旧ブログになります。

新ブログはこちらに移行しました🙇

構造体

【C/C++】簡単な構造体を使ったプログラムの書き方

はじめに 同じデータを持つ情報を扱う際には、共通のものを一つのデータとして扱った方が便利です。その際に構造体を使います 構造体の操作方法 構造体とは、「いろいろな種類のデータをまとめて、1つのかたまりにしたもの」です。 たとえば、「名前, 性別,…

Program using structure

Introduction How to operate the structure Declaration method Initialization of structure members Assignment of structure Array of structures Functions and structures Structure as function argument Structure in function return value Structu…