![]() |
#2
rjsp2014-07-18 12:20
|
#include<stdio.h>
#include<time.h>
#include<string.h>
void main()
{
time_t rawtime;
struct tm * Age;time ( &rawtime );
Age = localtime ( &rawtime );
getAge();
Student std1=new Student();
std1.no="2013111338";
std1.na="lili";
std1.se="女";
std1.da="1993,01,01";
}
class Student
{
public string stdno;
public string stdna;
public string stdse;
public string stdda;
int getAge();
{
DaTatime nowTime=DaTatime.Now;
return nowTime.Year-stdda.Year;
}
}