GithubHelp home page GithubHelp logo

sxtyzhangzk / ds2016 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from breakvoid/ds2016

0.0 2.0 0.0 6.17 MB

Requirements and test suit for Data Structure 2016 Spring

C++ 96.39% Python 3.61%

ds2016's Introduction

ds2016

Some files about the final project of Data Structure 2016 Spring

Include

  • Headers
  • Testcases
  • Documentation
  • Statements

Compile Command

g++ $(TEST_NAME).cc -o $(TEST_NAME) -O2 -std=c++11

F.A.Q.

  • Q: Can I add some other constructors for iterators?

  • A: Of course. You can add everything you want but you can not delete any functions in the original files.

  • Q: Can I rewrite some operators as friend functions?

  • A: Yes, but it may cause some errors.

Hints

Placement new expression

format of expression

::(optional) new (placement_params)(optional) ( type ) initializer(optional) or ::(optional) new (placement_params)(optional) type initializer(optional)

operator new

replaceable allocation functions

void* operator new[]( std::size_t count );
void* operator new  ( std::size_t count, const std::nothrow_t& tag);
void* operator new[]( std::size_t count, const std::nothrow_t& tag);```
placement allocation functions
```void* operator new  ( std::size_t count, void* ptr );
void* operator new[]( std::size_t count, void* ptr );
void* operator new  ( std::size_t count, user-defined-args... );
void* operator new[]( std::size_t count, user-defined-args... );```	
class-specific allocation functions
```void* T::operator new  ( std::size_t count );
void* T::operator new[]( std::size_t count );
void* T::operator new  ( std::size_t count, user-defined-args... );
void* T::operator new[]( std::size_t count, user-defined-args... );```
### free() or delete expression





ds2016's People

Contributors

sxtyzhangzk avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.