circular-list

    0热度

    3回答

    我必须移动链接列表中一个位置左侧的所有标记。 这里是我的方法的代码:当我调用该方法在运行时出现 private LLNode<E> head; // the first node in the list private LLNode<E> tail; // the last node in the list public void shiftLeft() { LLNode<E

    1热度

    3回答

    我一直试图通过调整我的add()和remove()方法,使我的单链表成为双圆形。 这里是我的代码: private LLNode<E> head; // the first node in the list private LLNode<E> tail; // the last node in the list // Adds the specified new item to the

    0热度

    2回答

    我用尽阅读尽可能多篇关于这个问题,我可以,但无法找到任何可以帮助我。在我的代码中,我创建了一个EntryWidget类,其中包含一个入口小部件,并且在我的应用程序的主类Controller中创建了一个名为self.entry的EntryWidget类实例。我正在尝试编写一个方法,该方法将成为一个OK按钮的命令,该按钮主要从入口小部件获取文本,然后对其进行处理。这个代码是从主类控制器: def o

    1热度

    2回答

    我一直在过去3天遇到一个小问题。我的任务是设计一个界面,带有两个片段(左侧和右侧) 莱夫特赛德片段将包含一个列表,但该列表会出现在圆形视图,例如指 | @ | - > @ | ---> @ | -----> @ | ------> @ | -------> @ | -------> @ | -------> @ | ------ > @ | -----> @ | ----> @ | - > @ |

    0热度

    2回答

    我想创建一个运行查询的SQL作业,如果它接管了一段时间以发送电子邮件警报。任何想法如何做到这一点。我正在运行SQL Server 2008.

    -3热度

    1回答

    我们已经从lisp那里得到了家庭作业,我需要使用“循环”列表(我不知道什么是正确的命名)。 “循环”列表,我的意思是列表,其中最后一个cons的cdr指向同一列表中的第一个列表。 (Value1 . PointerValue2) (Value2 . PointerValue3) (Value3 . PointerValue1) 我们被教导要以创建这样一个列表: (defun cykl (l)

    1热度

    1回答

    在Scheme/Lisp中,我试图创建一个将列表转换为循环列表的函数。因此,我相信我需要构建一个无限流,其中列表的尾部指向列表的头部。 这是到目前为止我的代码: (define (rotate-list l1 l1copy) (if (null? (force (cdr l1))) (cons (car l1) (delay l1copy))) (cons (ca

    1热度

    2回答

    我有以下代码: int InsForward (TL2 p, void* x){ /* Inserta a node a step forward from the supplied p*/ TL2 h = (TL2)calloc(1,sizeof(TCel2)); if (!h) return 0; h->pre = p->pre; h->nxt= p; p->pre =

    0热度

    1回答

    我有以下代码:(礼貌阿明) int InsForward (TL2 p, void* x){ /* Inserta a node a step forward from the supplied p*/ TL2 h = (TL2)calloc(1,sizeof(TCel2)); if (!h) return 0; h->pre = p; //sets h previous to

    2热度

    1回答

    你好,我使用的水平图像滚动Slide show Demo的参考。 现在我想使它成为循环,以便当我的第43张图像到来时滚动不会停止,它应该与第一张图像一起出现。 我添加了这样的图像。 public void addImagesToView() { for (int j = 0; j < Utility.image_array.length; j++) { final Butto