会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiaodubideyuanzi
博客园
首页
新随笔
联系
订阅
管理
2024年6月21日
实验7 文件应用编程
摘要: task.4 #include <stdio.h> int main() { FILE *fp; char ch; int count=0; fp=fopen("data4.txt","r"); if(fp == NULL) { printf("fail to open file\n"); retu
阅读全文
posted @ 2024-06-21 16:15 杜小刚
阅读(30)
评论(0)
推荐(0)
2024年6月9日
实验6 C语言结构体、枚举应用编程
摘要: task.1 #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 #include<stdlib.h> typedef struct student { int id; // 学号 char name[20]; // 姓名 char subject[20]; // 考试
阅读全文
posted @ 2024-06-09 11:08 杜小刚
阅读(22)
评论(0)
推荐(0)
2024年5月23日
实验5 C语言指针应用编程
摘要: task1_1.c #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int* pmin, int* pm
阅读全文
posted @ 2024-05-23 21:28 杜小刚
阅读(35)
评论(0)
推荐(0)
2024年5月19日
实验4 C语言数组应用编程
摘要: task1.1 void test1() { int a[N] = { 1, 9, 8, 4 }; int i; // 输出数组a占用的内存字节数 printf("sizeof(a) = %d\n", sizeof(a)); // 输出int类型数组a中每个元素的地址、值 for (i = 0; i
阅读全文
posted @ 2024-05-19 16:49 杜小刚
阅读(40)
评论(0)
推荐(0)
2024年4月29日
实验3 C语言函数应用编程
摘要: 1 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); // 函数声明
阅读全文
posted @ 2024-04-29 13:00 杜小刚
阅读(21)
评论(0)
推荐(0)
2024年4月14日
实验2 C语言分支与循环基础应用编程
摘要: #define _CRT_SECURE_NO_WARNINGS #include<math.h> #include<stdbool.h> #include<stdio.h> #include<stdlib.h> #include<string.h> #include<time.h> #define
阅读全文
posted @ 2024-04-14 22:11 杜小刚
阅读(10)
评论(0)
推荐(0)
2024年3月17日
实验1C语言开发环境使用和数据类型,运算符,表达式
摘要: #include<stdio.h> #include<stdlib.h> int main() { printf(" 0\n"); printf("<H>\n"); printf("I I\n"); printf(" 0\n"); printf("<H>\n"); printf("I I\n");
阅读全文
posted @ 2024-03-17 21:13 杜小刚
阅读(18)
评论(0)
推荐(0)
公告