摘要:
//pointer to structure #include <stdio.h> struct Person { char name[10]; char character[20]; int age; }; void display(struct Person *t); int main() { 阅读全文
摘要:
#include <stdio.h> struct Person { char name[10]; char character[20]; int age; }; void display(struct Person t); int main() { struct Person man = {"je 阅读全文
摘要:
#include <stdio.h> struct Person { char name[10]; char character[20]; int age; }; int main() { struct Person man[2]; //创建结构变量数组 for (int i = 0; i < 2; 阅读全文
摘要:
struct Person man1 = {"jerry", "fastidious", {"June", 4, 1965}, 34}; //注意这里的对应顺序,可以用curly brace把Birthday括起来 阅读全文
摘要:
#include <stdio.h> struct date { int day; char month[10]; int year; }; void out(struct date); // 1.该行一定要置于struct date定义的下面, 2.struct date是新定义的一种数据结构,类 阅读全文
摘要:
#include <stdio.h> #include <string.h> struct date { int day; //int month; char month[10]; int year; }; //别丢掉这里的逗号 int main() { struct date today; tod 阅读全文