**文書の過去の版を表示しています。**
構造体
参考:structのtypedef, CとC++での違い - minus9d's diary
C言語との違いは、typedefを使わなくても、構造体の変数名がそのまま使える点。
[C言語]
struct data_t {
int data1;
int data2;
};
struct data_t d;
[C++言語]
struct data_t {
int data1;
int data2;
};
data_t d;
Cpp:構造体
参考:structのtypedef, CとC++での違い - minus9d's diary
C言語との違いは、typedefを使わなくても、構造体の変数名がそのまま使える点。
[C言語]
struct data_t {
int data1;
int data2;
};
struct data_t d;
[C++言語]
struct data_t {
int data1;
int data2;
};
data_t d;
コメント