#include
using namespace std;
class Timedate{
public:
Timedate()
{
year;
month;
day;
}
void setTime()
{
cin>>year;
cin>>month;
cin>>day;
}
void showTime()
{
cout<
private:
int year;
int month;
int day;
int hour;
int minute;
int second;
};
int main()
{
Timedate t1;
t1.setTime();
t1.showTime();
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)