摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; 阅读全文
posted @ 2020-01-01 11:11 昱 阅读(75) 评论(2) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; 阅读全文
posted @ 2019-12-22 16:57 昱 阅读(92) 评论(0) 推荐(0)
摘要: 恢复内容 #include<stdio.h> int main() { long int s,p=1,t=0; printf("输入一个整数:"); scanf("%ld",&s); while(s) { if((s%10)%2==1) { t=t+(s%10)*p; p=p*10; } s=s/1 阅读全文
posted @ 2019-11-17 17:17 昱 阅读(128) 评论(2) 推荐(0)
摘要: #include<stdio.h> int main() { long int s,p=1,t=0; printf("输入一个整数:"); scanf("%ld",&s); while(s) { if((s%10)%2==1) { t=t+(s%10)*p; p=p*10; } s=s/10; } 阅读全文
posted @ 2019-11-17 17:05 昱 阅读(93) 评论(0) 推荐(0)