摘要:
struct Person man1 = {"jerry", "fastidious", {"June", 4, 1965}, 34}; //注意这里的对应顺序,可以用curly brace把Birthday括起来 阅读全文
posted @ 2020-06-04 17:55
profesor
阅读(969)
评论(0)
推荐(0)
摘要:
#include <stdio.h> struct date { int day; char month[10]; int year; }; void out(struct date); // 1.该行一定要置于struct date定义的下面, 2.struct date是新定义的一种数据结构,类 阅读全文
posted @ 2020-06-04 17:20
profesor
阅读(301)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <string.h> struct date { int day; //int month; char month[10]; int year; }; //别丢掉这里的逗号 int main() { struct date today; tod 阅读全文
posted @ 2020-06-04 16:16
profesor
阅读(105)
评论(0)
推荐(0)

浙公网安备 33010602011771号