攻城狮凌风

10 2015 档案

xml的解析与创建——bing到youdao导入文件的转换
摘要:首先是为了解决一个问题:如何将必应单词本中记录的单词转入到有道词典中去。实际上,必应词典可以导出xml文件,但是该文件有道词典无法解析。这里涉及到xml的解析和创建了。 代码如下: import java.io.File;import java.io.FileNo... 阅读全文

posted @ 2015-10-27 22:09 攻城狮凌风 阅读(501) 评论(0) 推荐(0)

运算符++重载
摘要:运算符重载中,后++(--)需要int参数,前置++(--)则不需要。输入输出重载需定义为友元类型。 #include"iostream"#include"vector"#include"string"using namespace std;class base{ int data... 阅读全文

posted @ 2015-10-13 20:51 攻城狮凌风 阅读(269) 评论(0) 推荐(0)

每天一道算法题(38)——二叉树的非递归遍历
摘要:#include#include "stack"using namespace std;struct node{ char c; node* left; node *right; bool flag;};void pre(node* head){//非递归前序遍历 stack s; while ... 阅读全文

posted @ 2015-10-13 20:46 攻城狮凌风 阅读(175) 评论(0) 推荐(0)

导航