摘要:
#ifndef BST_H_INCLUDED#define BST_H_INCLUDEDtemplate <class T>class treenode{public: treenode():lson(NULL),rson(NULL),freq(1){}; T data; int freq; tre 阅读全文
posted @ 2016-09-20 22:02
萌萌琪
阅读(115)
评论(0)
推荐(0)
摘要:
链表实现队列 #include <iostream>#include "stdio.h"#include "queue.cpp"typedef int datatype;using namespace std;int main(){queue a;a.push(3);a.push(6);cout<< 阅读全文
posted @ 2016-09-20 21:33
萌萌琪
阅读(419)
评论(0)
推荐(0)
摘要:
package oo;public interface Subject { public void registerObserver(Observer o); public void removeObserver(Observer o); public void notifyObserver();} 阅读全文
posted @ 2016-09-20 11:17
萌萌琪
阅读(158)
评论(0)
推荐(0)
摘要:
Inside class: private Outside class: Default protected Outside file: public 输入: 方法一:从控制台接收一个字符,然后将其打印出来 public static void main(String [] args) throws 阅读全文
posted @ 2016-09-20 00:35
萌萌琪
阅读(191)
评论(0)
推荐(0)
摘要:
package adapter;public abstract class Duck {FlyBehavior flyBehavior;QuackBehavior quackBehavior;public Duck(){}public void setFlyBehavior(FlyBehavior 阅读全文
posted @ 2016-09-20 00:09
萌萌琪
阅读(126)
评论(0)
推荐(0)

浙公网安备 33010602011771号