05 2020 档案

摘要:指向函数的指针 函数指针数组 阅读全文
posted @ 2020-05-21 16:06 jason2018 阅读(145) 评论(0) 推荐(0) 编辑
摘要:1 #include <stdio.h> 2 #define N 5 3 struct Student { 4 char name[20]; 5 int num; 6 char sex; 7 int age; 8 char department[20]; 9 }; 10 void inputStud 阅读全文
posted @ 2020-05-21 11:54 jason2018 阅读(322) 评论(0) 推荐(1) 编辑
摘要:1 #include <stdio.h> 2 #include <string.h> 3 char *process(char * s); 4 int main(void) 5 { 6 char str[200]; 7 //char str[200] = "Hello world.This is c 阅读全文
posted @ 2020-05-19 09:40 jason2018 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-15 11:12 jason2018 阅读(91) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 QQ:778138708 3 date:2020年5月15日 4 单链表结点删除 5 */ 6 #include <stdio.h> 7 #include <stdlib.h> 8 9 struct ListNode { 10 int data; 11 struct ListNode 阅读全文
posted @ 2020-05-15 11:11 jason2018 阅读(539) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 QQ:7878138708 3 date:2020年5月16日 4 奇数值结点链表 5 */ 6 #include <stdio.h> 7 #include <stdlib.h> 8 9 struct ListNode { 10 int data; 11 struct ListNode 阅读全文
posted @ 2020-05-15 10:03 jason2018 阅读(704) 评论(1) 推荐(1) 编辑
摘要:1 /* 2 QQ:778138708 3 date:2020-5-14 4 输入年份和月份,打印当月日历 5 6 */ 7 /* 8 日期转换为星期的方法 9 W= (d+2*m+3*(m+1)/5+y+y/4-y/100+y/400+1)%7 10 在公式中d表示日期中的日数,m表示月份数,y表 阅读全文
posted @ 2020-05-14 14:28 jason2018 阅读(1304) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 邮件:xuejineng2016@163.com 3 2020年5月5日 4 这个题目重点考核浮点数比较大小的问题,头有点大。 5 */ 6 #include <stdio.h> 7 #include <math.h> 8 #define EPS 1e-6 9 int main(voi 阅读全文
posted @ 2020-05-07 13:18 jason2018 阅读(429) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 xuejineng2016@163.com 3 2020年5月6日 4 */ 5 #include<stdio.h> 6 int main(void) 7 { 8 int num, ret, error = 0; 9 char ch; 10 11 scanf_s("%d", &num) 阅读全文
posted @ 2020-05-06 19:44 jason2018 阅读(175) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 xuejineng2016@163.com 3 2020年5月6日 4 */ 5 #include<stdio.h> 6 int main(void) 7 { 8 int year, month, day; 9 int isleap; 10 int i; 11 //用数组定义每个月的天 阅读全文
posted @ 2020-05-06 19:11 jason2018 阅读(201) 评论(0) 推荐(0) 编辑
摘要:/* xuejineng2016@163.com 2020年5月6日 */ #include<stdio.h> int main(void) { int score; char grade; scanf("%d", &score); switch (score / 10) { case 10: ca 阅读全文
posted @ 2020-05-06 18:29 jason2018 阅读(97) 评论(0) 推荐(0) 编辑
摘要:老实说,这道题目我没有看懂,但是还是做对了。 1 #include<stdio.h> 2 int main(void) 3 { 4 int n; 5 6 scanf("%d", &n); 7 if (n == 0) 8 { 9 printf("0"); 10 } 11 else 12 { 13 pr 阅读全文
posted @ 2020-05-06 18:19 jason2018 阅读(335) 评论(0) 推荐(0) 编辑
摘要:1 #include<stdio.h> 2 int main(void) 3 { 4 int now, delay; 5 int minutes; 6 int after_hour, after_minute; 7 8 scanf("%d %d", &now, &delay); 9 minutes 阅读全文
posted @ 2020-05-06 14:47 jason2018 阅读(247) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 邮件:xuejineng2016@163.com 3 2020年5月5日 4 这是一个前导0的问题 5 */ 6 #include<stdio.h> 7 int main(void) 8 { 9 int year, month, day; 10 11 scanf("%d-%d-%d", 阅读全文
posted @ 2020-05-06 11:25 jason2018 阅读(87) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 邮件:xuejineng2016@163.com 3 2020年5月5日 4 5 */ 6 #include<stdio.h> 7 int main(void) 8 { 9 int a, b; 10 scanf("%d %d", &a, &b); 11 12 printf("%d + 阅读全文
posted @ 2020-05-06 11:15 jason2018 阅读(283) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 邮件:xuejineng2016@163.com 3 2020年5月5日 4 将华氏度转换为摄氏度 5 */ 6 #include<stdio.h> 7 int main(void) 8 { 9 int celsius, fahr; 10 11 scanf("%d", &fahr); 阅读全文
posted @ 2020-05-06 10:07 jason2018 阅读(298) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 QQ:778138708 3 2020年5月5日 4 */ 5 #include<stdio.h> 6 int main(void) 7 { 8 const int N = 4; //倒三角形的行数 9 for (int i = 0; i < N; i++) 10 { 11 for ( 阅读全文
posted @ 2020-05-06 09:53 jason2018 阅读(434) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 QQ:778138708 3 2020年5月6日 4 厘米换算英尺英寸 5 思路:将输入的厘米数换成浮点数形式的英尺,然后求整数形式的英尺和英寸 6 */ 7 #include <stdio.h> 8 int main(void) 9 { 10 int centimeter; 11 i 阅读全文
posted @ 2020-05-06 09:40 jason2018 阅读(921) 评论(0) 推荐(0) 编辑
摘要:student.h 1 #include<stdio.h> 2 #include<string.h> 3 #define MaxSize 50 4 struct student 5 { 6 int num; 7 char name[10]; 8 int computer, english, math 阅读全文
posted @ 2020-05-03 20:04 jason2018 阅读(691) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示