• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






lijingchen

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2020年1月1日

实验7
摘要: #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 15:54 lijingchen 阅读(121) 评论(3) 推荐(0)
 

2019年12月22日

实验6
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; 阅读全文
posted @ 2019-12-22 23:06 lijingchen 阅读(154) 评论(1) 推荐(0)
 

2019年12月16日

实验5
摘要: /* 假定输入的字符串中只包含字母和*号。 编写函数,实现: 除了字符串前导和尾部的*号之外,将串中其他*号全部删除。 在编写函数时,不得使用C语言提供的字符串函数。 例如,若字符串中的内容为****A*BC*DEF*G******* 删除后,字符串中的内容则应当是****ABCDEFG****** 阅读全文
posted @ 2019-12-16 23:37 lijingchen 阅读(122) 评论(2) 推荐(0)
 

2019年12月3日

实验4
摘要: // 寻找两个整数之间的所有素数(包括这两个整数),把结果保存在数组bb中,函数返回素数的个数。 // 例如,输入6和21,则输出为:7 11 13 17 19。 #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n, 阅读全文
posted @ 2019-12-03 22:51 lijingchen 阅读(105) 评论(1) 推荐(0)
 

2019年11月18日

实验三
摘要: #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: ", n); scanf("%d", &number); max = number; min = nu 阅读全文
posted @ 2019-11-18 11:25 lijingchen 阅读(147) 评论(1) 推荐(0)
 

2019年11月3日

实验2 ljc
摘要: #include <stdio.h> int main(){ int n,m; printf("输入一个三位数"); scanf("%d",&n); if(n>=0&&n<=9) printf("倒序正序相等"); else if(n>=10&&n<=99){ if(n%11==0) printf("倒序相等"); else printf("倒序不等"); } else if(n>=100&&n&l 阅读全文
posted @ 2019-11-03 15:07 lijingchen 阅读(137) 评论(3) 推荐(0)
 

2019年10月20日

实验1 ljc
摘要: #include int main() { int days; printf("输入一个整数\n"); scanf("%d",&days); if(days>=1&&days=6&&days int product(int,int); int main(void) { int x,y,z; scanf ("%d %d",&x,&y); z=p... 阅读全文
posted @ 2019-10-20 21:58 lijingchen 阅读(153) 评论(0) 推荐(0)