forgiver

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2023年12月18日

摘要: 一、实验目的 二、实验准备 三、实验内容 四、实验结论 1. 实验任务4 源代码: 1 #include<stdio.h> 2 #include<string.h> 3 #define N 1000 4 5 int main(){ 6 FILE *fp; 7 8 fp = fopen("data4. 阅读全文
posted @ 2023-12-18 20:34 Forgiver 阅读(12) 评论(0) 推荐(0) 编辑

2023年12月12日

摘要: 一、实验目的 二、实验准备 三、实验内容 四、实验结果 1.实验任务4 源代码: 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 c 阅读全文
posted @ 2023-12-12 13:04 Forgiver 阅读(7) 评论(0) 推荐(0) 编辑

2023年11月29日

摘要: 一、实验目的 二、实验准备 三、实验内容 1. 实验任务1 task1_1.c 源代码: 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void 阅读全文
posted @ 2023-11-29 16:41 Forgiver 阅读(7) 评论(0) 推荐(0) 编辑

2023年11月24日

摘要: 1 import numpy as np 2 3 def nearest_neighbor_algorithm(distance_matrix, cities): 4 num_cities = len(cities) 5 unvisited_cities = set(cities[1:]) # St 阅读全文
posted @ 2023-11-24 00:29 Forgiver 阅读(8) 评论(0) 推荐(1) 编辑

2023年11月19日

摘要: 一、实验目的 二、实验准备 三、实验内容 四、实验结论 1. 实验任务1 task1_1.c 源代码: 1 #include <stdio.h> 2 #define N 4 3 void test1() { 4 int a[N] = {1, 9, 8, 4}; 5 int i; 6 // 输出数组a 阅读全文
posted @ 2023-11-19 15:59 Forgiver 阅读(6) 评论(0) 推荐(0) 编辑

2023年11月5日

摘要: 一、实验目的 二、实验准备 三、实验内容 1. 实验任务1 源代码: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 7 void print 阅读全文
posted @ 2023-11-05 15:03 Forgiver 阅读(3) 评论(0) 推荐(0) 编辑

2023年10月20日

摘要: 摘要 一、实验目的 二、实验准备 三、实验内容 四、实验结论 task1 源代码: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 #define N1 374 6 #define N2 4 阅读全文
posted @ 2023-10-20 16:19 Forgiver 阅读(14) 评论(0) 推荐(0) 编辑

2023年9月29日

摘要: 一、实验目的 二、实验准备 三、实验内容 四、实验结论 task1 task1_1 代码: 1 #include <stdio.h> 2 3 int main() 4 { 5 printf(" O \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 9 pri 阅读全文
posted @ 2023-09-29 22:57 Forgiver 阅读(13) 评论(0) 推荐(0) 编辑