2024年1月8日
摘要: #include <stdio.h> #include <stdlib.h> #define Elemtype int #define ERROR -1 /* 带头节点的双向链表循环实现 */ typedef struct Node { Elemtype e; Node* next; Node* f 阅读全文
posted @ 2024-01-08 10:41 Rabbit_XIN 阅读(4) 评论(0) 推荐(0) 编辑
  2024年1月5日
摘要: #include <stdio.h> #include <stdlib.h> #define Elemtype int #define ERROR -1 /* 循环链表实现 */ typedef struct Node { Elemtype e; Node* next; }Node,*LinkLis 阅读全文
posted @ 2024-01-05 22:37 Rabbit_XIN 阅读(4) 评论(0) 推荐(0) 编辑
  2024年1月4日
摘要: #include <stdio.h> #include <stdlib.h> #define Elemtype int #define ERROR -1 typedef struct Node { Elemtype e; Node* next; }Node,*LinkList; void InitL 阅读全文
posted @ 2024-01-04 11:23 Rabbit_XIN 阅读(1) 评论(0) 推荐(0) 编辑
  2023年12月24日
摘要: #include <stdio.h> #include <stdlib.h> #include "ConsoleApplication1.h" // Use dynamic array to create list #define MaxSize 100 #define AddSize 10 #de 阅读全文
posted @ 2023-12-24 21:55 Rabbit_XIN 阅读(3) 评论(0) 推荐(0) 编辑
  2023年12月21日
摘要: // ConsoleApplication1.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <stdio.h> #define MaxSize 100 #define Elemtype int typedef struct { Elemtype L 阅读全文
posted @ 2023-12-21 16:15 Rabbit_XIN 阅读(2) 评论(0) 推荐(0) 编辑
  2023年12月7日
摘要: // // main.c // Hello // // Created by renxin on 2023/11/28. // #define ElemType int #define MaxSize 50 #include <stdio.h> #include <stdlib.h> typedef 阅读全文
posted @ 2023-12-07 11:43 Rabbit_XIN 阅读(5) 评论(0) 推荐(0) 编辑
  2023年11月30日
摘要: 代码是对整数的 如果要对小数的话 改个字符就OK啦 用途没有 就是做线性代数怕计算罢了 #include <stdio.h> void createMatrix(int a[10][10], int m, int n) { for (int i = 0;i < m; ++i) { for (int 阅读全文
posted @ 2023-11-30 11:58 Rabbit_XIN 阅读(3) 评论(0) 推荐(0) 编辑
  2022年12月8日
摘要: GPS数据处理 题目内容: NMEA-0183协议是为了在不同的GPS(全球定位系统)导航设备中建立统一的BTCM(海事无线电技术委员会)标准,由美国国家海洋电子协会(NMEA-The National Marine Electronics Associa-tion)制定的一套通讯协议。GPS接收机 阅读全文
posted @ 2022-12-08 22:14 Rabbit_XIN 阅读(49) 评论(0) 推荐(0) 编辑
  2022年12月6日
摘要: #include <stdio.h> struct{ int amount; char *name; } coins[] = { {1, "penny"}, {5, "nickel"}, {10, "dime"}, {25, "quarter"}, {50, "harf-doller"} }; in 阅读全文
posted @ 2022-12-06 17:36 Rabbit_XIN 阅读(14) 评论(0) 推荐(0) 编辑
  2022年12月5日
摘要: 1.用数组列出素数表 是素数该下标对应的值为1 将每个素数的倍数对应的下标值赋为0 这样就完成了素数表 #include <stdio.h> int main(){ const int maxNumber = 255; int isPrime[maxNumber]; int i; int x; fo 阅读全文
posted @ 2022-12-05 22:03 Rabbit_XIN 阅读(23) 评论(0) 推荐(0) 编辑