Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

DStruct Documents

Start

Get Source Code

git clone git@github.com:Sunrisepeak/DStruct.git

Configuration Include Path

xmake

GNU Make

CMake

Visual Sudio

Coding - Write Hello DStruct

#include <iostream>

#include <dstruct.hpp> // DStruct

int main() {
    dstruct::Array<int, 10> arr(2);

    arr[0] = arr[-1] = 6;

    for (int i = 0; i < arr.size(); i++) {
        std::cout << arr[-(i + 1)] << " : " << arr[i] << std::endl;
    }

    return 0;
}

Build & Run

Linux

use compiler -I to include DStruct's root dir

g++ -I yourPath/DStruct HelloDStruct.cpp -o HelloDStruct && ./HelloDStruct

Windows

macOS

Data Structures

Lists

Lists, Stacks, Queues is ADT -- logical structure

Array and Linked-List is specific implement for Lists -- physical structure

Stacks and Queues are restricted Lists(impl by array or linked-list)

  • Arrays
    • Array
    • Vector
  • Linked-List
    • EmbeddedList
    • SinglyLinkedList
    • DoublyLinkedList
  • Stacks
    • Stack
    • XValueStack
  • Queues
    • Deque
    • Queue

Algorithms

DStruct Spec

Other