我试图弄清楚如何使用 struct 但这段代码给了我很多错误。
#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;
}