Skip to content

Sweep76/CppLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CppLib(TEMP)

Introduction

C++ Library

Platform

  • Linux

Requirement

  • g++ 6.3.0
  • cmake 2.8.2

Run

  1. Clone
$ git clone https://github.com/zy2625/CppLib.git
  1. Build

    • Samples only:
    $ mkdir build && cd build
    $ cmake ..
    $ make
    • Additional tests:
    $ mkdir build && cd build
    $ cmake -DCPPLIB_BUILD_TEST=ON ..
    $ make
  2. Run

    • targets:
      • specific target
      $ cd .. && ./bin/Stack ./data/tobe.txt
      • custom target
      $ make run
    • tests:
      • detailed output
      $ cd .. && ./bin/Test
      • test summary
      $ make test

Contents

Details

Deque

Usage

$ more data/tobe.txt
to be or not to - be - - that - - - is

./bin/Deque data/tobe.txt
As queue: to be or not to be (2 left on deque)
As stack: to be not that or be (2 left on deque)

Queue

Usage

$ more data/tobe.txt
to be or not to - be - - that - - - is

./bin/Queue data/tobe.txt
to be or not to be (2 left on queue)

Stack

Usage

$ more data/tobe.txt
to be or not to - be - - that - - - is

./bin/Stack data/tobe.txt
to be or not to be (2 left on stack)

Timer

Usage

./bin/Timer
Timestamp: 1499677940528
Timestamp: 1499677941023
It takes 0.495s to sum the sqrt 100000000 times

About

C++ Library (Combo)

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors