40

次のような初期値を持つ C で構造体を作成したい:

typedef struct {
    int id = 0;
    char *name = "none";
} employee;

上記の方法では無理だと思いますが、他に方法はありますか?

4

0 に答える 0