c++ 输入split

日期格式为“yyyy/mm/dd”(即年/月/日)格式

1 scanf("%d/%d/%d", &year, &month, &day);

 

posted @ 2018-02-26 22:16  bloglxc  阅读(103)  评论(0编辑  收藏  举报