会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tk-1816
博客园
首页
新随笔
联系
订阅
管理
2022年6月8日
第六次实验
摘要: 1. 实验任务1 #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; for(i=0; i<N; ++i) printf("%d", x[i]); printf("\n"); for(
阅读全文
posted @ 2022-06-08 23:16 允楠
阅读(38)
评论(1)
推荐(0)
2022年6月5日
第五次实验
摘要: 1. 实验任务1 task1_1. #include <stdio.h> #define N 5 #define M 80 typedef struct { char name[M]; char author[M]; }Book; int main() { Book x[N] = { {"一九八四"
阅读全文
posted @ 2022-06-05 00:03 允楠
阅读(33)
评论(2)
推荐(0)
2022年5月3日
第四次实验
摘要: 1. 实验任务1 task1_1 #include <stdio.h> #define N 4 int main() { int a[N] = {2, 0, 2, 2}; char b[N] = {'2', '0', '2', '2'}; int i; printf("sizeof(int) = %
阅读全文
posted @ 2022-05-03 20:40 允楠
阅读(29)
评论(3)
推荐(0)
2022年4月19日
第三次实验
摘要: 1. 实验任务1 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void printText(int line, int col, char text[]); vo
阅读全文
posted @ 2022-04-19 21:32 允楠
阅读(18)
评论(2)
推荐(0)
2022年4月13日
第二次试验作业
摘要: 1, line 16功能:生成一个2018~2021的随机数grade。 line 17功能:生成一个1~999的随机数number。 该程序功能是随机生成5个学号。 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N
阅读全文
posted @ 2022-04-13 20:32 允楠
阅读(25)
评论(2)
推荐(0)
公告