摘要: 0.出现“cannot be resolved to a type”错误http://chenxiaohu612.blog.163.com/blog/static/192214286201171004911955/http://zhaoningbo.iteye.com/blog/11372151.Eclipse中10个最有用的快捷键组合http://www.open-open.com/bbs/vi... 阅读全文
posted @ 2013-12-18 17:10 haoaina521 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 声明:题目来自网上,此处只做知识的积累和讨论,不建议转载和传播。题目:http://blog.csdn.net/boo12355/article/details/11826855http://www.cnblogs.com/xuning/p/3332648.html(带解答)一.客观题1.A解析:参考http://blog.csdn.net/hr10707020217/article/details/105813712.B3.略过4.A5.C6.B7.D8.A9.C10.A解析:参考http://blog.csdn.net/lovemdx/article/details/9829539,有类似 阅读全文
posted @ 2013-09-27 22:41 haoaina521 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 声明:此处只做知识的积累和讨论,不建议转载和传播。笔试题:一.选择题4道选择题,都是基础题,大多都回忆不起来,想起再补充吧。最后一道是入栈出栈问题,入栈顺序为1,2,。。。,n,第一个出栈的是n,问第i个出栈的是什么?应该是n-i+1。二.简答题1.问vector,linkedList和arrayList的存储性能和特性。答:Java的容器类,Java很少写,也就很少去关注,纯粹当成C++的STL容器来写了。具体解析:http://www.cnblogs.com/mgod/archive/2007/08/05/844011.html(挺多人关注的博客)2.问垃圾回收机制是什么,Java的垃圾回 阅读全文
posted @ 2013-09-26 19:15 haoaina521 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 声明:题目来自网上,此处只做知识的积累和讨论,不建议转载和传播。题目:http://blog.csdn.net/wanglongfei_hust/article/details/11556337笔试题:1.给出一堆硬币,不断重复一个操作:若是正面,则随意一抛;若是反面,则翻过来,问最后这堆硬币的正反比例稳不稳定,稳定的话是多少?答:假设最后能够稳定,则可以得到以下的式子:x/y=(x/2+y)/(x/2),求得x/y=2。2.概率题。给出甲乙两个生产车间占全厂的比例:P(A)和P(B),再给出各自的产品不合格率:P(C|A)和P(C|B),求不合格产品是甲厂生产的概率P(A|C)?答:由条件概 阅读全文
posted @ 2013-09-26 02:47 haoaina521 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 声明:题目来自网上,此处只做知识的积累和讨论,不建议转载和传播。笔试题:题目:http://www.itmian4.com/forum.php?mod=viewthread&tid=35721.这种二叉树的题,按照前序、中序和后序的特点进行递归构建即可。2.CD解析:A.有序数组明显不可能,删除效能很差。B.有序链表应该是有利于插入,但是查找的话,如果是用二分查找,那么就需要随机访问,明显链表没有这个特性。C.AVL树:http://zh.wikipedia.org/wiki/AVL%E6%A0%91,删除和查找都是花费O(logn)时间。D.Hahs表的查找就不用说了,O(1)时间, 阅读全文
posted @ 2013-09-25 21:58 haoaina521 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 声明:题目来自网上,此处只做知识的积累和讨论,不建议转载和传播。题目:http://blog.csdn.net/doc_sgl/article/details/116956711.D解析:rand()产生的是伪随机数:http://blog.csdn.net/lzyzuixin/article/details/30860762.A3.B4.B5.C6.D解析:参考http://www.zhihu.com/question/20369232/answer/149205147.C解析:static函数不能被继承,也就没有多态性可言,参考http://blog.csdn.net/love_gaohz 阅读全文
posted @ 2013-09-22 22:38 haoaina521 阅读(247) 评论(0) 推荐(1) 编辑
摘要: 1.32位环境下#include #include #include using namespace std;int main(){ char t1[] = "ab\0cd"; char t2[6] = "abcd\0"; int t3[4] = {'0', 0, '\0'}; printf("%d\n",sizeof(t1)); printf("%d\n",sizeof(t2)); printf("%d\n",sizeof(t3)); printf(" 阅读全文
posted @ 2013-09-20 19:19 haoaina521 阅读(2543) 评论(0) 推荐(2) 编辑
摘要: 1.引用和指针的区别?参考:http://blog.csdn.net/shencaifeixia1/article/details/79072182.typedef和宏定义的区别?参考:http://www.kuqin.com/language/20090322/41866.html3.抽象类和接口的区别?参考自:http://dev.yesky.com/436/7581936.shtml4.new和malloc的区别?参考自:http://www.cppblog.com/Lee/archive/2009/03/09/75990.htmlhttp://www.builder.com.cn/20 阅读全文
posted @ 2013-09-17 13:47 haoaina521 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 代码1:#include #include using namespace std; class node{ public: node(); ~node(); private: int num; node* next; }; int main() { //runtiem error //node* p1 = new node; //runtime error //node* p2 = new node(); //runtiem error //node n1; node n2(); return 0; }解决上面的问题很容易,只要把构造函数和析构函数实现了就... 阅读全文
posted @ 2013-09-17 11:27 haoaina521 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 本篇博文主要记录了自己在Ubuntu12.04系统下配置cocos2d-x的开发环境。在配置过程了参考了以下地址的博文:Ubuntu下cocos2d-x开发环境及配置http://blog.csdn.net/jamesjiangchn/article/details/8734586子龙山人的cocos2d-x跨android&ios平台开发入门教程http://www.cnblogs.com/zilongshanren/archive/2012/04/28/2473282.html相关博客:http://www.maestrosdelweb.com/editorial/cocos2d- 阅读全文
posted @ 2013-09-12 00:53 haoaina521 阅读(326) 评论(0) 推荐(0) 编辑