会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
linbai7
博客园
首页
新随笔
联系
订阅
管理
2023年6月14日
实验七
摘要: task4 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { char ch; FILE* fp; int n = 0; fp = fopen("data4.txt", "r"); ch = fgetc(fp); while
阅读全文
posted @ 2023-06-14 16:50 林白7
阅读(10)
评论(0)
推荐(0)
2023年5月31日
实验6
摘要: task4.c #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; int s1; int s2; double sum; char level[10]; } STU; int fun(
阅读全文
posted @ 2023-05-31 17:10 林白7
阅读(15)
评论(0)
推荐(0)
2023年5月5日
实验五
摘要: task1.1.c #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
阅读全文
posted @ 2023-05-05 19:35 林白7
阅读(16)
评论(0)
推荐(0)
2023年4月20日
实验4
摘要: task1-1.c #include <stdio.h> #define N 4 int main() { int a[N] = {2, 0, 2, 3}; char b[N] = {'2', '0', '2', '3'}; int i; printf("sizeof(int) = %d\n", s
阅读全文
posted @ 2023-04-20 08:40 林白7
阅读(10)
评论(0)
推荐(0)
2023年4月5日
实验三 函数应用编程
摘要: task1.c #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); vo
阅读全文
posted @ 2023-04-05 16:12 林白7
阅读(56)
评论(0)
推荐(0)
2023年3月20日
实验2 C语言输入输出和控制语句应用编程
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand(time(0)); //
阅读全文
posted @ 2023-03-20 19:51 林白7
阅读(81)
评论(0)
推荐(0)
2023年3月2日
实验1 c语言开发环境使用和编程初体验
摘要: // 打印一个字符小人 #include <stdio.h> int main() { printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); retu
阅读全文
posted @ 2023-03-02 19:46 林白7
阅读(39)
评论(0)
推荐(0)
公告