摘要:
课本例题 #include<stdio.h> int main() { /*x,bw,sw,gw分别用来存放三位正整数及其百位,十位和个位数*/ int x, bw, sw, gw; printf("请输入一个三位正整数:\n"); scanf_s("%d", &x); bw = x / 100; 阅读全文
摘要:
课本例题 #include<stdio.h> int main() { int year, month, day; printf("请输入身份证号码:\n"); scanf_s("%*6d%4d%2d%2d%*d", &year, &month, &day); printf("%4d-%02d-%0 阅读全文