会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qiwieiri
博客园
首页
新随笔
联系
订阅
管理
2022年6月13日
实验6
摘要: #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[i]); pri
阅读全文
posted @ 2022-06-13 23:36 里Li
阅读(27)
评论(1)
推荐(0)
2022年6月5日
实验5
摘要: #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 20:28 里Li
阅读(11)
评论(0)
推荐(0)
2022年5月7日
实验4
摘要: 1 #include<stdio.h> 2 #define N 4 3 int main() 4 { 5 int a[N]= { 2,0,2,2}; 6 char b[N] = { '2','0','2','2'}; 7 int i; 8 printf("sizeof(int) = %d\n", s
阅读全文
posted @ 2022-05-07 15:56 里Li
阅读(14)
评论(0)
推荐(0)
2022年4月23日
实验3
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void printText(int line, int col, char text[]);//函数声明 void prin
阅读全文
posted @ 2022-04-23 22:33 里Li
阅读(32)
评论(0)
推荐(0)
2022年4月16日
实验2
摘要: Task 1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 int main()//生成五个介于2018级到2021级的随机学号。 7 { 8 int grade, number; 9
阅读全文
posted @ 2022-04-16 03:12 里Li
阅读(35)
评论(0)
推荐(0)
2022年3月24日
实验1
摘要: 1 #include <stdio.h> 2 int main() 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 8 printf("\n"); 9 10 printf(" O \n"); 11 printf("<H>\
阅读全文
posted @ 2022-03-24 17:23 里Li
阅读(48)
评论(3)
推荐(0)
公告