
C++
舟山群岛
这个作者很懒,什么都没留下…
展开
-
自定义string类(数据结构与算法C++)
自定义string类(数据结构与算法C++) string.h #ifndef MY_STRING_H #define MY_STRING_H_ #include /* * The next line is used because Codewarrior has a conflict with * the STL string. Make sure to put the #in转载 2017-11-24 16:07:22 · 482 阅读 · 0 评论 -
自定义vector类(数据结构与算法C++)
#ifndef VECTOR_H #define VECTOR_H #define vector Vector class ArrayIndexOutOfBounds { }; template class vector { public: explicit vector( int theSize = 0 ) : currentSize( theSize ) { o转载 2017-11-24 16:50:56 · 1362 阅读 · 0 评论 -
自定义matrix类(数据结构与算法C++)
dsexceptions.h: Simple exception classes #ifndef DSEXCEPTIONS_H_ #define DSEXCEPTIONS_H_ class Underflow { }; class Overflow { }; class OutOfMemory { };转载 2017-11-24 17:01:47 · 1535 阅读 · 0 评论