fork download
  1. #include <stdio.h>
  2.  
  3. typedef struct{
  4. int year;
  5. int month;
  6. int day;
  7. }Data;
  8.  
  9. int main(void) {
  10.  
  11. Data today = {2026,10,20};
  12.  
  13. printf("年:%d\n",today.year);
  14. printf("月:%d\n",today.month);
  15. printf("日:%d\n",today.day);
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
年:2026
月:10
日:20