Posted on 2007-07-02 12:38
停留的风 阅读(298)
评论(0) 编辑 收藏 所属分类:
C语言学习历程
#include <stdio.h>
int main(void)
{
struct date
{
int month;
int day;
int year;
};
struct date today;
today.month=9;
today.day=25;
today.year=2004;
printf("Today's date is %i/%i/%.2i.\n",today.month,today.day,today.year%100);
return 0;
}
运行图: