Sweety

Practice makes perfect

导航

2014年11月22日

摘要: (1)全局变量和局部变量问题:http://blog.csdn.net/u014665013/article/details/41383193 (2)string类型的不能通过scanf()和printf()输入,但是可以使用getline() http://blog.csdn.net... 阅读全文

posted @ 2014-11-22 17:14 蓝空 阅读(102) 评论(0) 推荐(0) 编辑

摘要: 本例子中是二叉树,如果不是二叉树的话用vector会比较好 #include #include #include #include #include using namespace std; struct ss{ int son1; int son2; } T[10... 阅读全文

posted @ 2014-11-22 17:12 蓝空 阅读(429) 评论(0) 推荐(0) 编辑

摘要: 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5337 开始的时候就知道是二叉树的应用,开始深搜各种查找都试过了,就是不对 最后惊奇的发现,递归竟然解决了。。。但是期间遇到的编译器里的BUG也是让我醉了... 题目... 阅读全文

posted @ 2014-11-22 16:59 蓝空 阅读(109) 评论(0) 推荐(0) 编辑