C语言链表类面试题.docx

shawnjunn 14 0 DOCX 2020-08-22 12:08:54

C语言链表类面试题.docx struct node { int data; struct node* next; }; 创建单链表的程序为: struct node* create(unsigned int n) { //创建长度为n的单链表 assert(n > 0); node* head; head = new node; head->next = NULL; cout > head->data; if (n == 1) { return head; } node* p = h

用户评论
请输入评论内容
评分:
暂无评论