- 博客(4)
- 收藏
- 关注
原创 关于Java初始化顺序测试
public class Test extends A{ static{ System.out.println("子类静态代码块"); } { System.out.println("子类普通代码块"); } static String s3=print(""); String s4=printl(""); static String print(String s){ Syst
2016-12-23 09:02:55 226
原创 四则运算(非递归)
#include #include #include using namespace std; template class Stack { private: E* list; int n; int maxsize; public: Stack(int i = 10) { list = new E[i]; maxsize = i; n = 0; } ~Stack()
2016-12-02 15:21:39 229
原创 管理城市坐标的简单C++程序
本程序意在输入城市信息进行保管(名字,坐标),其中print函数用来打印指定城市的指定范围内的城市群名字,两个随机函数用来生成坐标和名字。 #include #include #include #include #include using namespace std; class Coordinate { double x; double y; pub
2016-11-17 22:17:44 631
原创 只用栈与队列实现判断回文
#include using namespace std; templateclass Node { public : E data; Node * next; Node(E it, Node *p = NULL) { data = it; next = p; } Node(Node *p = NULL) { next = p; } }; template class LSta
2016-11-13 10:46:27 1779
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人