5-面向范型编程.pptxVIP

  • 1
  • 0
  • 约 50页
  • 2017-06-06 发布于湖北
  • 举报
面向泛型的编程;什么是泛型(Generic);泛型的目的和使用;不同语言的实现方式;泛型程序设计方法;不同语言中的泛型编程;程序的进化I-泛型程序设计;模板的使用;模板的基本语法;模板的基本语法;模板;函数模板;函数模板;函数模板;函数模板;函数模板;函数模板;函数模板;函数模板;函数模板;类模板;类模板;类模板;class Stash { int quantity; int next; int* storage; void inflate(int increase); public: Stash(); Stash(int initQuantity); ~Stash(); int add(int element); int fetch(int index) const; int operator[](int index) const; int count() const; };;类模板;类模板;类模板;类模板;template typename T, int increment StashT, increment::Stash() : quantity(0),next(0), storage(0) { } template typename T, int increment StashT, increment::~S

文档评论(0)

1亿VIP精品文档

相关文档