• [C]struct初识


    #include <stdio.h>
    #include <string.h>
    struct date
    {
        int day;
        //int month;
        char month[10];
        int year;
    }; //别丢掉这里的逗号
    
    int main()
    {
        struct date today;
        today.day = 4;
        //today.month = 6;
        strcpy(today.month, "May");
        today.year = 2020;
        printf("Today is %s-%d-%d
    ", today.month, today.day, today.year);
        return 0;
    }
  • 相关阅读:
    BOM-DOM
    JavaScript
    CSS(2)
    CSS(1)
    HTML5
    索引
    数据库多表查询
    数据操作
    数据库表操作
    初识Java
  • 原文地址:https://www.cnblogs.com/profesor/p/13044225.html
Copyright © 2020-2023  润新知