会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
wlysnd
博客园
首页
新随笔
联系
订阅
管理
2022年6月7日
实验6 吱吱吱针
摘要: task1.1 #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; // 方式1:通过数组名和下标遍历输出数组元素 for(i=0; i<N; ++i) printf("%d", x[
阅读全文
posted @ 2022-06-07 15:23 酒酿鸭不想思考
阅读(42)
评论(2)
推荐(1)
编辑
2022年5月31日
实验五之抹茶好喝椰真的超级好喝耶
摘要: // 将图书信息写入文本文件data1.txt #include <stdio.h> #define N 5 #define M 80 typedef struct { char name[M]; // 书名 char author[M]; // 作者 }Book; int main() { Boo
阅读全文
posted @ 2022-05-31 16:13 酒酿鸭不想思考
阅读(151)
评论(1)
推荐(0)
编辑
2022年5月3日
实验4
摘要: #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) = %d\n", sizeof(int)
阅读全文
posted @ 2022-05-03 16:47 酒酿鸭不想思考
阅读(31)
评论(1)
推荐(0)
编辑
2022年4月19日
第三次实验
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 void printText(int line, int col, char text[]);
阅读全文
posted @ 2022-04-19 16:18 酒酿鸭不想思考
阅读(59)
评论(1)
推荐(0)
编辑
2022年4月12日
实验二(又名重生之我叫秦始皇)
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 int main() 6 { 7 int grade, number; 8 int i; 9 srand(time(0)); // 以当前系统
阅读全文
posted @ 2022-04-12 17:40 酒酿鸭不想思考
阅读(60)
评论(2)
推荐(0)
编辑
2022年3月22日
实验1
摘要: // 打印两个竖直字符小人 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf("\n"); printf(" O \n"); printf("<H>\n"); print
阅读全文
posted @ 2022-03-22 17:12 酒酿鸭不想思考
阅读(52)
评论(3)
推荐(0)
编辑
公告