struct student {
            float time;
            float age;
          };
  struct student  k; //定义一个结构数组K
  float m;
time(&timep);
p=gmtime(&timep);
q=(1900+p->tm_year);
w=(1+p->tm_mon);
e=p->tm_mday;
r=p->tm_hour;
t=p->tm_min;
y=p->tm_sec;//这一段得出系统实时时间:年,月,日,时,分,秒(都是int型),如2006年6月
            //21日12时20分18秒

①m=(float)(q*10000000000+w*100000000+e*1000000+r*10000+t*100+y);//把实时时间转换为一个float数据;
②printf("%.0f ",m);//打印,如20060621122018

  k.time=m;//把20060621122018给定义一个结构数组K的time

③printf("%f ",k.time);//打印结构数组K的time的值

运行情况:

②的打印结果是20060621122018
③的打印结果是20060622028800
    
不知为啥不等?如再次运行,②的打印结随系统时间的变化而变化,可③的打印结果总是20060622028800
请教各位大侠指点
谢谢