我把 C# 的编程放到了 C++,我想获取一个时间,但是不知道要怎么去入手
#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;
}
}