-
链表信息
学生信息建立
// 上机实验二.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "iostream.h"
#include "string.h"
struct Student
{
char id[10];
char name[10];
char sex[10];
char grade[10];
char tel[10];
int age;
};
- 2022-02-14 01:40:40下载
- 积分:1
-
Shi Bole @ beige book Data Structure Course part2
施伯乐@黄皮书《数据结构教程》part2-Shi Bole @ beige book Data Structure Course part2
- 2022-06-01 18:24:58下载
- 积分:1
-
SHELL排序算法与应用
SHELL排序算法与应用-SHELL algorithm and application
- 2022-03-22 23:07:56下载
- 积分:1
-
[问题描述]
将N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N...
[问题描述]
将N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N)
[输入]
待排序记录个数,各关键字的值。
[输出]
关键字从正负分开,正数在前
[存储结构]
待排序记录顺序存储。
[算法的基本思想]
快速排序算法每次任取一个记录的关键字为标准,将其余记录分为两组将,N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前。
#include
using namespace std
#define MAXNUM 100//设文件的最长可能长度
void sort(int* keys, const int len)//排序
-[Problem Description] N keyword to the integer sequence the entire record. keyword so that all non-negative Records with the keyword for the negative record, at least require the use of the additional space and time complexity of the algorithm is O (N) [imported] to be sort record number, The value of the keyword. [Output] keyword separate from the pluses and minuses are several former [storage structure] scheduling records to be stored sequence. [Algorithm for the basic idea] quick sort algorithm each time a record for any keyword as a standard, The remaining records will be divided into two groups, N-keyword
- 2022-03-17 21:15:57下载
- 积分:1
-
高精度数的加减乘法,可以自定义进制,作为类实现,直接使用即可。...
高精度数的加减乘法,可以自定义进制,作为类实现,直接使用即可。-precision the number of addition and subtraction multiplication can be defined band, as the category achieved, can be used directly.
- 2022-07-17 17:30:45下载
- 积分:1
-
数据结构中的各种各样的排序算法
数据结构中的各种各样的排序算法-data structure of a variety of Sorting Algorithm
- 2022-01-26 03:17:36下载
- 积分:1
-
MS SQL数据库连接学校管理系统java
在MS SQL Server数据库连接 java的学校管理系统;
- 2022-07-25 09:05:03下载
- 积分:1
-
根据贪心算法,来求解最小生成树;
这种情况,可能求不不全局最优解,但是,可以求出当前情况下的最优解;...
根据贪心算法,来求解最小生成树;
这种情况,可能求不不全局最优解,但是,可以求出当前情况下的最优解;-According to greedy algorithm to solve the minimum spanning tree this situation, it may not seek the global optimal solution is not, however, you can find the optimal solution under the current situation
- 2023-05-29 18:05:03下载
- 积分:1
-
Beijing Bus Inquiry System Beijing Bus Inquiry System
北京公交车查询系统
北京公交车查询系统-Beijing Bus Inquiry System Beijing Bus Inquiry System
- 2022-02-03 12:07:35下载
- 积分:1
-
求最大公约数和最小公倍数的程序,输入两个数,能求出最大公约数和最小公倍数...
求最大公约数和最小公倍数的程序,输入两个数,能求出最大公约数和最小公倍数-seek common denominator and implements procedures to import two few, the common denominator can be obtained and implements
- 2022-02-11 22:12:42下载
- 积分:1