template1.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 31 行

C
31
字号
// Build don't link: // GROUPS passed templatesclass String {        char s[100];};template <class Element>class Art {public:        Element *data;        Art() { data=new Element[100]; }};template <class Key,class Value>class Assoc {public:        struct KeyValue {                Key key;                Value value;                int filled;        };        Art<KeyValue> data;        int fill;};int main() {        Assoc<String,String> table;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?