会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xf461
博客园
首页
新随笔
联系
订阅
管理
2022年6月13日
实验6
摘要: #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(p=x; p<x+
阅读全文
posted @ 2022-06-13 19:24 xf461
阅读(14)
评论(2)
推荐(0)
2022年6月6日
实验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-06 22:51 xf461
阅读(11)
评论(2)
推荐(0)
2022年5月5日
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)); pri
阅读全文
posted @ 2022-05-05 21:07 xf461
阅读(42)
评论(1)
推荐(0)
2022年4月22日
3
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void printText(int line, int col, char text[]); // 函数声明 voi
阅读全文
posted @ 2022-04-22 08:26 xf461
阅读(234)
评论(1)
推荐(0)
2022年4月15日
2
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int grade, number; int i; srand(time(0)); // 以当前系统时间作为随机种子 for(i=0;
阅读全文
posted @ 2022-04-15 22:16 xf461
阅读(49)
评论(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"); printf(
阅读全文
posted @ 2022-03-22 16:57 xf461
阅读(64)
评论(4)
推荐(0)
公告