首页 > 其他
2015年百度面经
百度问的是开放性的问题,应该是为了考察你的综合能力吧,问了两个问题 一,html&css 涉及的内容 块元素与行内元素,浮动,清除浮动 1,一个100px的容器,里面塞了一个空的div,这个div marginLeft为10,borderLeft,borderRight为10,paddi...
分类:其他   时间:2015-03-11 18:52:06    收藏:0  评论:0  赞:0  阅读:201
MarkMan – 马克鳗,让设计更有爱!
scavin(Google+)on2010.11.16.MarkMan – 马克鳗是一款方便高效的标注工具,极大节省设计师在设计稿上添加和修改标注的时间,让设计更有爱。Adobe AIR 平台。@Appinn感谢微博好友 @Stonehe同学给@小众软件推荐了MarkMan这款很有爱的设计辅助软件。...
分类:其他   时间:2015-03-11 18:51:46    收藏:0  评论:0  赞:0  阅读:198
Remove Nth Node From End of List
Question:Given a linked list, remove the nth node from the end of list and return its head.For example,Given linked list: 1->2->3->4->5, and n = 2.Aft...
分类:其他   时间:2015-03-11 18:51:16    收藏:0  评论:0  赞:0  阅读:248
max_element 返回值上限与下限
#include #include #include using namespace std;//using namespace std::list;//using namespace std::cout;//using namespace std::endl;int main(int argc, ...
分类:其他   时间:2015-03-11 18:51:06    收藏:0  评论:0  赞:0  阅读:261
蓝桥杯 16进制转换8进制
蓝桥杯 16进制转换8进制我表示我自己太渣渣了,总是超时,通不过测试。题目问题描述 给定n个十六进制正整数,输出它们对应的八进制数。输入格式 输入的第一行为一个正整数n (1= 0; x--) { switch (chArr[x]) { case 'A...
分类:其他   时间:2015-03-11 18:49:26    收藏:0  评论:0  赞:0  阅读:414
Activity A 跳转到Activity B 生命周期
又被生命周期折磨了一段时间,这次是被onPause 和 onStop 折磨了,一直认为Activity A 跳转到到 Activity B的生命周期是onPause(A),onStop(A),onCreat(B),onStart(B),onResume(B),其实不然。 从Activiyt A...
分类:其他   时间:2015-03-11 18:48:06    收藏:0  评论:0  赞:0  阅读:414
cocos2dx 3.3 getParentToNodeTransform bug
cocos2dx 3.3中getParentToNodeTransform实现如下:const Mat4& Node::getParentToNodeTransform() const{ if ( _inverseDirty ) { _inverse = _transform.getInve...
分类:其他   时间:2015-03-11 18:47:56    收藏:0  评论:0  赞:0  阅读:423
startService()和bindService()区别
1. 生命周期:startService()方式启动,Service是通过接受Intent并且会经历onCreate()和onStart()。当用户在发出意图使之销毁时会经历onDestroy(),而bindService()方式启动,与Activity绑定的时候,会经历onCreate()和onB...
分类:其他   时间:2015-03-11 18:47:46    收藏:0  评论:0  赞:0  阅读:308
assert()函数用法总结
assert宏的原型定义在中,其作用是如果它的条件返回错误,则终止程序执行,原型定义:#include void assert( int expression ); assert的作用是现计算表达式 expression ,如果其值为假(即为0),那么它先向stderr打印一条出错信息,然后通过调....
分类:其他   时间:2015-03-11 18:47:36    收藏:0  评论:0  赞:0  阅读:264
【POJ3481】【splay】Double Queue
DescriptionThe new founded Balkan Investment Group Bank (BIG-Bank) opened a new office in Bucharest, equipped with a modern computing environment prov...
分类:其他   时间:2015-03-11 18:47:26    收藏:0  评论:0  赞:0  阅读:272
centos的软件安装方法rpm和yum
centos的软件安装大致可以分为两种类型:[centos]rpm文件安装,使用rpm指令 类似[ubuntu]deb文件安装,使用dpkg指令[centos]yum安装 类似[ubuntu]apt-get安装rpm命令(一)查询系统装已经安装的软件信息对于一个rpm包来说,都是有"-"和"."构成...
分类:其他   时间:2015-03-11 18:46:36    收藏:0  评论:0  赞:0  阅读:261
PAT:1023. Have Fun with Numbers (20) AC
#include#includechar str[30]; //输入的数字int tmp[30]; //*2后逆序的数字int cntstr[10]; //输入数字0-9的个数int tmpI=0,jin=0; //...
分类:其他   时间:2015-03-11 18:45:26    收藏:0  评论:0  赞:0  阅读:139
as3.0 动态文本属性大全
var my_fmt = new TextFormat();//常用样式my_fmt.align = "center";my_fmt.blockIndent = 50; //区块缩进my_fmt.bold = true;my_fmt.bullet = true;my_fmt.color = 0xff...
分类:其他   时间:2015-03-11 18:45:06    收藏:0  评论:0  赞:0  阅读:344
获取Repeater控件中的每一项数据
var items = rptList.Items;//获取Repeater控件的所有项 foreach (RepeaterItem item in items)//遍历每一项内容 { var tb = item.FindControl("tbLendi...
分类:其他   时间:2015-03-11 18:44:56    收藏:0  评论:0  赞:0  阅读:328
hdu 3586 树形dp+二分
题目大意:给定n个敌方据点,1为司令部,其他点各有一条边相连构成一棵 树,每条边都有一个权值cost表示破坏这条边的费用,叶子节点为前线。现要切断前线和司令部的联系,每次切断边的费用不能超过上限limit,问切断所 有前线与司令部联系所花费的总费用少于m时的最小limit。1 6 #include ...
分类:其他   时间:2015-03-11 18:44:26    收藏:0  评论:0  赞:0  阅读:292
14.使用unbind()方法移除元素绑定的事件
unbind()方法可以移除元素已绑定的事件,它的调用格式如下:$(selector).unbind(event,fun)其中参数event表示需要移除的事件名称,多个事件名用空格隔开,fun参数为事件执行时调用的函数名称。例如,点击按钮时,使用unbind()方法移除元素中已绑定的“dblclic...
分类:其他   时间:2015-03-11 18:44:16    收藏:0  评论:0  赞:0  阅读:168
回溯法求解N皇后问题
1 #include 2 3 #define QUEEN_N (8) 4 5 int queen[QUEEN_N][QUEEN_N] = { 6 {0, 0, 0, 0, 0, 0, 0, 0}, 7 {0, 0, 0, 0, 0, 0, 0, 0}, ...
分类:其他   时间:2015-03-11 18:44:06    收藏:0  评论:0  赞:0  阅读:347
安装gcc
刚开始学习Linux下的C编程,好不容易照葫芦画瓢写出了Hello程序,编译时却发现编译器GCC没有安装,查了资料原来可以用yum install GCC,虽然没有太明白具体如何实现,但是按照下面的步骤终于安装成功,将程序编译成功,运行成功了,记录下吧。mount /dev/cdrom /mntyu...
分类:其他   时间:2015-03-11 18:43:56    收藏:0  评论:0  赞:0  阅读:268
在cocos2d中实现真正意思上的图片放大和缩小
http://www.cnblogs.com/dinghing154/archive/2012/08/05/2623970.html在编写程序的时候我们常常使用self.scale来让我们使用的图片放大和缩小,但这种变化并没有真正意义上让我们的图片的大小发生改变,当我们要对这种图片进行点击或其他操作...
分类:其他   时间:2015-03-11 18:43:46    收藏:0  评论:0  赞:0  阅读:333
柯里化
Function.prototype.method = function(name,func){ if(!this.hasOwnProperty(name)){ //不能直接用.name判断 返回值为:"Empty" ,还可以用[name] 方式,返回值为:undefine this...
分类:其他   时间:2015-03-11 18:42:56    收藏:0  评论:0  赞:0  阅读:303
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!