首页 > 2015年10月04日 > 全部分享
汉字转整数,比系统简单易用!a2iLxx (覆盖物 16十六进制,VC6亲测可用)请提供意见~
#include "string.h"#define INVALID_VALUE_LXX ((1 << (8 * sizeof(int) -1)) - 1) /*有符号整型最大值,假设越界将为0, and - is prioty of <<*/#define A2a(ch) (('a' <= (ch...
分类:其他   时间:2015-10-04 15:55:12    收藏:0  评论:0  赞:0  阅读:282
3*(4+6)-7 # 用代码实现这个运算表达式,仅包含逆波兰式部分,算术结果部分未写出
#include#include#includeusing namespace std;void pr(char *str){ cout s1(strlen(str)); vector s2(strlen(str)); int i=0; while(str[i]!='\0')...
分类:其他   时间:2015-10-04 15:55:02    收藏:0  评论:0  赞:0  阅读:319
初识JAVA
1995年5越23日,Sun科技部主管John Gage和Netscape创始人及副执行官MarcAndressen宣布Java技术正式诞生。Java编程语言是一种高级编程语言,可以用简单,面向对象,可移植,多线程,动态,结构中立,分布式,高性能,健壮,安全的名词来归纳。1996年1月23日发布了首...
分类:编程语言   时间:2015-10-04 15:54:52    收藏:0  评论:0  赞:0  阅读:233
POJ 1733 Parity game
Description:Now and then you play the following game with your friend. Your friend writes down a sequence consisting of zeroes and ones. You choose a ...
分类:其他   时间:2015-10-04 15:54:12    收藏:0  评论:0  赞:0  阅读:184
ZooKeeper参数调优
zookeeper的默认配置文件为zookeeper/conf/zoo_sample.cfg,需要将其修改为zoo.cfg。其中各配置项的含义,解释如下:1.tickTime:Client-Server通信心跳时间Zookeeper 服务器之间或客户端与服务器之间维持心跳的时间间隔,也就是每个 ti...
分类:其他   时间:2015-10-04 15:54:02    收藏:0  评论:0  赞:0  阅读:402
IE6兼容性问题及IE6常见bug详细汇总(转)
IE6的兼容性问题一直都是前端工程师的恶梦,为了早早脱离这种困境,本文整理了一些相关兼容性的知识,感兴趣的朋友可以参考下哈,希望可以帮助到你。1、IE6怪异解析之padding与border算入宽高 原因:未加文档声明造成非盒模型解析 解决方法:加入文档声明 2、IE6在块元素、左右浮动、设定mar...
分类:其他   时间:2015-10-04 15:53:52    收藏:0  评论:0  赞:0  阅读:252
WEB前端开发面试题集锦
1、列举你工作中遇到的IE6BUG,谈谈解决方案。3、如何用CSS分别单独定义IE6、7、8的width属性。 所有浏览器通用height:100px;IE6专用_height:100px;IE6专用*height:100px;IE7专用 *+height:100px;IE7、FF共用 height...
分类:Web开发   时间:2015-10-04 15:53:42    收藏:0  评论:0  赞:0  阅读:260
《Linux内核设计的艺术》学习笔记(七)INT 0x15中断
参考资料: 1. 《IBM-PC汇编语言程序设计》 2.http://blog.sina.com.cn/s/blog_5028978101008wk2.html 3.http://www.ctyme.com/intr/int-15.htm ◆ 返回扩展内存大小(286+): 功能号:A...
分类:系统服务   时间:2015-10-04 15:53:12    收藏:0  评论:0  赞:0  阅读:361
Unity3D 搭建优雅的UI框架
为什么要使用UI框架?直接使用NGUI或UGUI一拖一拉直接搭载出界面不就行了?我相信很多小白,包括我在刚学习Unity3D UI的时候都这样想过。我的第一款款Unity2D游戏《山地赛车》,使用的就是NGUI搭载界面。弱联网手游一般都没什么复杂的界面,我也是很轻松花一天就把界面搭载好了,看起来好挺...
分类:编程语言   时间:2015-10-04 15:52:52    收藏:0  评论:0  赞:0  阅读:1363
C#隐式执行CMD命令
本文实现C#隐式执行CMD功能命令。下图是示例程序的主界面。在命令文本框输入DOS命令,点击“Run”button。在以下的文本框中输出执行结果。以下是程序的完整代码。本程序没有使用p.StandardOutput.ReadtoEnd()和p.StandardOutput.ReadLine()方法来...
分类:Windows开发   时间:2015-10-04 15:52:42    收藏:0  评论:0  赞:0  阅读:744
字符串
字符串分为可变字符串和不可变字符串不可变字符串 1. 不可变字符串的初始化 NSString *string1 = [[NSString alloc] init]; NSString *string = [NSString stringA]; NSString *string...
分类:其他   时间:2015-10-04 15:52:32    收藏:0  评论:0  赞:0  阅读:234
117. Populating Next Right Pointers in Each Node II (Tree; WFS)
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:其他   时间:2015-10-04 15:52:22    收藏:0  评论:0  赞:0  阅读:235
116. Populating Next Right Pointers in Each Node (Tree; WFS)
Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointe...
分类:其他   时间:2015-10-04 15:52:12    收藏:0  评论:0  赞:0  阅读:187
D - Silver Cow Party
题意:从x点到其他各点再返回,所有最短路径中的最长路径#include #include #include #include #include using namespace std;const int oo=100000007;struct node{ int u,v,w; int n...
分类:其他   时间:2015-10-04 15:52:02    收藏:0  评论:0  赞:0  阅读:298
119. Pascal's Triangle II? (Graph; WFS)
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1].Note:Could you optimize your algorithm to use...
分类:其他   时间:2015-10-04 15:51:42    收藏:0  评论:0  赞:0  阅读:270
118. Pascal's Triangle (Graph; WFS)
Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,...
分类:其他   时间:2015-10-04 15:51:32    收藏:0  评论:0  赞:0  阅读:271
队列——PowerShell版
继续读啊哈磊《啊哈!算法》感悟系列——队列地铁售票处排队,先来的人先到队首先买完先走,后来的人排在队尾等候后买完后走。想买票,必须排在队尾;买完票,只能从队首离开。这种先进先出(First In First Out,FIFO),后进后出的线性队伍,就是我们说的——队列。在现实中,队列里包含的是人,在...
分类:系统服务   时间:2015-10-04 15:51:12    收藏:0  评论:0  赞:0  阅读:310
Android中数据存储(一)
国庆没有给国家添堵,没有勾搭妹子,乖乖的写着自己的博客。。。。。本文将为大家介绍Android中数据存储的五种方式,数据存储可是非常重要的知识哦。一,文件存储数据 ①在ROM存储数据 关于在ROM读写文件,可以使用java中IO流来读写,但是谷歌很人性化,直接给你封装了一下,所以就有了Conte.....
分类:移动平台   时间:2015-10-04 15:51:02    收藏:0  评论:0  赞:0  阅读:214
48. Rotate Image (Graph)
You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?class Solution ...
分类:其他   时间:2015-10-04 15:50:52    收藏:0  评论:0  赞:0  阅读:274
《深入理解计算机系统》第四周学习笔记
一、知识点总结1.信息存储练习题2.40x503c+0x8=0x50440x503c-0x40=0x4ffc0x503c+64=0x503c+0x40=0x507c0x50ea-0x503c=0xae1)字长:指明整数和指针数据的标称大小。一个字长为w的机器的虚拟地址范围为0~2^(w-1),程序最...
分类:其他   时间:2015-10-04 15:50:32    收藏:0  评论:0  赞:0  阅读:1463
750条   上一页 1 ... 20 21 22 23 24 ... 38 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!