摘要: public class MyQueue { private int[] array; private int front; private int rear; public MyQueue(int capacity){ this.array=new int[capacity]; } public 阅读全文
posted @ 2024-03-25 17:42 dmfsimle 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1 class Node{ 2 int data; 3 Node next; 4 Node(int data){ 5 this.data=data; 6 } 7 } 8 public class MyNodes { 9 private Node head; 10 private Node last; 阅读全文
posted @ 2024-03-25 17:42 dmfsimle 阅读(2) 评论(0) 推荐(0) 编辑
摘要: public class MyArray { private int[] array; private int size; public MyArray(int capacity){ this.array=new int[capacity]; size=0; } public void insert 阅读全文
posted @ 2024-03-25 17:40 dmfsimle 阅读(2) 评论(0) 推荐(0) 编辑
摘要: pthread_mutex_init在ubantu中man不到的时候,更新man页 sudo apt-get install manpages-posix manpages-posix-dev 阅读全文
posted @ 2016-08-23 15:32 dmfsimle 阅读(149) 评论(0) 推荐(0) 编辑