摘要:
已知高频面试题 一、链表 1.移除链表元素 class Solution { public: ListNode* removeElements(ListNode* head, int val) { ListNode* dummmyhead = new ListNode(0); ListNode* c 阅读全文
posted @ 2023-09-10 18:48
timeMachine331
阅读(34)
评论(0)
推荐(0)
摘要:
说的都是指针类型,只有指针有这种说法 顶层const: int * const p = a 表明指针本身的值(指向)是常量无法修改,也无法转化为int *类型。即便是const_cast试图去掉这样的顶层const属性也不可以。 底层const: int const * p = a. 表明指针指向的 阅读全文
posted @ 2023-09-10 10:58
timeMachine331
阅读(61)
评论(0)
推荐(0)
浙公网安备 33010602011771号