07 2021 档案
暴力破解小于正整数n的质数
摘要:#include <iostream> using namespace std; void GetPrimenumber() { cout<<"求小于正整数n的素数,请输入正整数:"; int n; cin >> n; int c = 0; int h = 0; cout << endl; for 阅读全文
posted @ 2021-07-15 00:40 学群 阅读(63) 评论(0) 推荐(0)
暴力破解自幂数
摘要:#include <iostream> #include<cmath> using namespace std; void GetSelfpowerNumber() { cout << "求小于正整数n的自幂数,请输入正整数:" << endl; long int c , n = 0 , h , k 阅读全文
posted @ 2021-07-15 00:25 学群 阅读(49) 评论(0) 推荐(0)
C语言动态链表的排序(从小到大) 2021.07.14
摘要://现在的主要问题是,排序的列表中不能出现0,原因是与NULL冲突。 #include <stdio.h> #include <stdlib.h> #define MAX 999999 typedef struct LNode//重命名struct LNode为LNode { int data; L 阅读全文
posted @ 2021-07-14 15:45 学群 阅读(874) 评论(1) 推荐(0)
C语言动态链表创建 2021.7.13
摘要:主要目的是复习知识点,耗时一个下午。。。 #include <stdio.h> #include <stdlib.h> using namespace std; typedef struct LNode//重命名struct LNode为LNode { int data; LNode* next;/ 阅读全文
posted @ 2021-07-13 17:35 学群 阅读(161) 评论(0) 推荐(0)