1

構造体の使用方法を理解しようとしていますが、このコードでは多くのエラーが発生します。

#include <stdio.h>

int main(void)
{
    struct date
    {
        int today       =   6;
        int tomorrow    =   7;
        int threeDays   =   8;
    };

    struct date date;

    printf("%d", date.today);

    return 0;
}
4

2 に答える 2