c++ 输入split

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

1 scanf("%d/%d/%d", &year, &month, &day);
原文地址:https://www.cnblogs.com/lxc1910/p/8476324.html