04 2013 档案
摘要:对于lisp语言来说,抽象与应用是最基本的,而对于像C++这样的控制性语言,条带与位置应该我觉得也是蛮基本的,试试构造自然数?#include <vector>using namespace std;template<typename T>struct Nature{private: typename T::iterator iter; T * tape;public: static Nature zero(T& tape_){ Nature x; x.tape = &tape_; x.iter = tape_.begin(); ...
阅读全文