如何将字符串转换为存储在整数数组中?

时间:2015-11-26 04:17:37

标签: c

如何将诸如gcardNum之类的字符串转换为存储在整数数组中?

char gcardNum[17] = ""; //16 digit gift card number
printf("What is your 16 digit gift card number?\n"); 
scanf("%s", gcardNum); // asks the user for their 16 digit gc number

0 个答案:

没有答案