标签:png 学习 integer clu com img return def std
1 //typedef应用举例 2 #include<stdio.h> 3 typedef int INTEGER; 4 typedef struct{ 5 int year; 6 int month; 7 int day; 8 }DATE; 9 10 typedef int COUNT[10]; 11 12 int main(){ 13 INTEGER i; 14 COUNT c; 15 DATE birthday; 16 for(i=0;i<=9;i++){ 17 c[i]=i; 18 } 19 printf("数组:\n"); 20 for(i=0;i<=9;i++){ 21 printf("%d ",c[i]); 22 } 23 24 birthday.year=2010; 25 birthday.month=10; 26 birthday.day=1; 27 printf("\n生日:%d年%d月%d日\n",birthday.year,birthday.month,birthday.day); 28 return 0; 29 }
标签:png 学习 integer clu com img return def std
原文地址:https://www.cnblogs.com/Tobi/p/9239671.html