求助!输入不是0,数组0号位莫名其妙变为0

P1055 [NOIP2008 普及组] ISBN 号码

Decade2005 @ 2024-05-15 21:17:59

int num[9]; char sym; scanf("%1d-%1d%1d%1d-%1d%1d%1d%1d%1d-%s", &num[0], &num[1], &num[2], &num[3], &num[4], &num[5], &num[6], &num[7], &num[8], &sym);


by GoodLuckCat @ 2024-05-15 21:26:15

望丰展使MD


|