GithubHelp home page GithubHelp logo

designpattern's Introduction

Seastar

作业说明

工厂设计模式作业要求: 将物流工厂、家具工厂进行合并,提供家具生产物流一条龙

适配器设计模式作业要求: 实现一个可多向转换的适配器

功能1:美标插座转换国标插座

功能2:美标插座转换德标插座

功能3:支持适配器电源转换能力

加分项:构建电源插头Plug对象,以面向对象开发**封装UseAmericanPlug方法

观察者设计模式作业要求: 实现学生订阅多个老师,获取老师所发布作业的作业通知系统

功能:该系统支持多同学订阅多老师

代理设计模式作业要求:

1、使用智能指针管理对象

2、包含代理模式应用场景:延迟初始化、数据缓存、权限控制(对某些参数做一些判断等等)

限制:不允许使用第三方库,可以使用STL

状态设计模式作业要求:

在原有马里奥代码的基础上增加新的事件:吃羽毛;新的状态:斗篷马里奥

迭代器设计模式作业要求:

实现一个自定义的类支持range-based for loop

要求:

需要两个类:迭代器类和容器类

容器类需要添加begin()和end()方法,并返回合适的迭代器

迭代器类需要实现运算符重载

operator*

operator!=

operator++

designpattern's People

Contributors

tiandao123456 avatar

Watchers

 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.