标签:
#include<iostream> using namespace std; struct Date { int year; int mon; int day; }; Date input() { Date d; cout<<"input the date (yyyy mm dd):"; cin>>d.year>>d.mon>>d.day; return d; } int main() { Date d=input(); cout<<d.year<<"年"<<d.mon<<"月"<<d.day<<"日"; return 0; }
标签:
原文地址:http://blog.csdn.net/u012503639/article/details/44117141