2014年3月22日

【原创】C++链表如何像Python List一样支持多种数据类型

摘要: 用过Python的码友都知道,Python中List支持多种数据类型,如下面代码所示链表li内的数据类型可以是整数,同时也可以是字符串,当然也可以是其他数据类型。 1: >>> li = [1,2.5,"hello world"] 2: >>> li 3: [1, 2.5, 'hello world'] 4: >>> 对于一个C++爱... 阅读全文

posted @ 2014-03-22 22:43 流镡 阅读(1967) 评论(0) 推荐(0) 编辑

导航