登录
首页 » 算法 » C++ 异质链表

C++ 异质链表

于 2022-02-06 发布 文件大小:2.55 MB
0 174
下载积分: 2 下载次数: 1

代码说明:

C++的异质链表,通过定义一个viod* pData的指针来指向任意一个数据类型或者数据类型,通过C++的多态性实现在一个链表中连接不同数据类型的node的效果.可以实现对list的insert,Delete,print的操作. 支持int,char,double,string四种数据类型.在每个node中记录这个节点的type,和相应数据类型的指针,并通过模板实现对不同数据类型的操作.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 四轴源码以及原理图
    小四轴的源码以及原理图    #include "led.h"#include "delay.h"#include "sys.h"#include "key.h"#include "usart.h"#include "exti.h"#include "wdg.h"#include "timer.h"#include "pwm.h"#include "lcd.h"#include "MPU6050.h"#include "lsm330.h"u8 SPI1_Buffer_Rx1[6]="432423";s16 SPI1_Buffer_Rx[30];u8  k = 0;void SPI_Configuration(){ SPI_InitTypeDef   SPI_InitStructure;   /* SPI1 Config -------------------------------------------------------------*/  SPI_InitStructure.SPI_Direction = SPI_Direction_2Lines_FullDuplex;  SPI_InitStructure.SPI_Mode = SPI_Mode_Master;  SPI_InitStructure.SPI_DataSize = SPI_DataSize_8b;  SPI_InitStructure.SPI_CPOL = SPI_CPOL_High;  SPI_
    2023-03-12 15:55:03下载
    积分:1
  • lzw的c语言实现
    lzw算法,LZW就是通过建立一个字符串表,用较短的代码来表示较长的字符串来实现压缩。此项目,压缩、解压算法都有
    2022-05-21 10:20:54下载
    积分:1
  • 特纳马基纳与chenney的垃圾colecctor和统计
    特纳机与chenney的垃圾收集器在C实现代码该文件包含3台机器。该MGV1使用不带电池,以保持的方式。所述MGV2一起使用的电池存储外的路径。该MGV7实现算法chenney(垃圾colecctor)在纪律和执行计算机语言的理论应用于设计(编译)
    2022-07-23 01:27:35下载
    积分:1
  • 16 位 二进制 随机数 生产 函数和Manchester编码
    16 位 二进制 随机数 生产 函数和Manchester编码-16-bit binary random number production function and Manchester encoding
    2022-07-16 18:39:35下载
    积分:1
  • DES(C语言实现)
    资源描述void show2() //加密界面 {  printf(" ****************** DES加密 ********************** ");  printf(" -------------------------------------------------- ");  printf(" ************************************************** ");  printf(" ** ** ");  printf(" ** 请选择明文和密钥的输入方式: ** ");  printf(" ** ** ");  printf(" ** 1.直接输入 ** ");  printf(" ** ** ");  printf(" ** 2.从文件读取 ** ");  printf(" ** ** ");  printf(" ** 3.退出 ** ");  printf(" ** ** ");  printf(" -------------------------------------------------- ");  printf(" 选择:"); }
    2023-01-01 21:25:03下载
    积分:1
  • Based on M/G/K multi
    基于M/G/K 多类别共用一个资源的最优化分配问题程序 主要以系统总等待时间为目标函数-Based on M/G/K multi-class share an optimization of resources allocation process is essentially the system as the objective function the total waiting time
    2022-03-04 17:10:15下载
    积分:1
  • 一个能解中国古代数定理(即孙子定理)的小程序
    一个能解中国古代算数定理(即孙子定理)的小程序-a solution can count theorem Ancient China (grandson theorem) of small programs
    2023-04-16 04:00:04下载
    积分:1
  • omp,应用与压缩感知
    这个是经典omp算法,里面测量矩阵是用的高斯随机矩阵,稀疏基是傅里叶正交矩阵。这个算法对研究压缩感知非常有用。
    2022-01-25 15:02:28下载
    积分:1
  • ACM的重要PPT资料,对初学者非常有益处
    ACM的重要PPT资料,对初学者非常有益处-ACM important PPT information is very useful for beginners
    2023-01-02 20:05:12下载
    积分:1
  • this program highlights the pointer to pointer and enum concepts of c
    this program highlights the pointer to pointer and enum concepts of c
    2022-06-15 05:57:25下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载