![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
计算机基础
ryantaocer001
这个作者很懒,什么都没留下…
展开
-
java中指定import和import *的区别
[转载:https://www.cnblogs.com/dtts/p/4692480.html]java中有两种包的导入机制,总结如下:单类型导入(single-type-import), 例如 import java.io.File;按需类型导入(type-import-on-demand),例如 import java.io.*;这里分析一下这两种导入...转载 2018-08-16 13:11:05 · 16280 阅读 · 2 评论 -
C++实现局部锁
在编写多线程程序时,经常需要互斥锁,来确保在访问共享数据时同一时刻只有一个线程在操作。Linux环境下,POSIX提供了pthread_mutex_t互斥量相关的一系列函数,包括pthread_mutex_init、pthread_mutex_lock、pthread_mutex_unlock、pthread_mutex_destroy等。在实际开发中,函数在执行过程中,可能有多条返回路径,需...原创 2018-07-12 20:56:16 · 2062 阅读 · 2 评论 -
单向链表反转
template <class T>struct ListNode{ T value; ListNode* next;};ListNode* ReverseList(ListNode* const head){ if (head == null) return null; ListNode *c = head, *p =...原创 2018-07-18 16:36:36 · 128 阅读 · 0 评论