List链表empty()函数运用实例

empty
语法:

empty()函数返回真(true)如果链表为空,否则返回假。

测试代码

测试结果

charList内无元素