Design Pattern in C Some simple samples. Build and run: mkdir build cd build cmake .. make ./design-pattern-in-c {pattern-name} The value of pattern-name: state-pattern Related Chinese article:C 语言的面向对象之旅