typedefenum {
UIBarButtonSystemItemDone,
UIBarButtonSystemItemCancel,
UIBarButtonSystemItemEdit,
UIBarButtonSystemItemSave,
UIBarButtonSystemItemAdd,
UIBarButtonSystemItemFlexibleSpace,
UIBarBu...
分类:
其他 时间:
2014-06-30 20:04:50
收藏:
0 评论:
0 赞:
0 阅读:
597
题目
Given a binary tree, flatten it to a linked list in-place.
For example,
Given
1
/ 2 5
/ \ 3 4 6
The flattened tree should look lik...
分类:
其他 时间:
2014-06-30 18:14:01
收藏:
0 评论:
0 赞:
0 阅读:
335
以前写的一篇笔记,偶尔翻出来了,放在这里做个纪念
Linux 下IO端口编程访问
这里记录的方法是在用户态访问IO端口,不涉及驱动程序的编写。
首先要包含头文件 /usr/include/asm/io.h
ioperm()
在 unistd.h 中声明。用来打开对IO端口的访问权限,要求程序执行时必须有root 权限。只可以打开0x00到0x3ff 这一地址段的IO端口。
iop...
分类:
系统服务 时间:
2014-06-30 16:30:25
收藏:
0 评论:
0 赞:
0 阅读:
434
题目
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas
to travel from s...
分类:
其他 时间:
2014-06-30 16:56:58
收藏:
0 评论:
0 赞:
0 阅读:
314
题目
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it witho...
分类:
其他 时间:
2014-06-30 19:39:07
收藏:
0 评论:
0 赞:
0 阅读:
332
本案例为咖啡销售情况录入查询系统
一、数据输入系统:
1. 设计输入信息页面
代码如下:
咖啡管理系统——录入系统
欢迎来到录入系统
咖啡名称:
供应商ID:
商品价格:
销售量:
总量:
2. 设计处理or...
分类:
数据库技术 时间:
2014-06-30 16:29:22
收藏:
0 评论:
0 赞:
0 阅读:
451
题目
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it...
分类:
其他 时间:
2014-06-30 19:23:51
收藏:
0 评论:
0 赞:
0 阅读:
305
Creating a Physical Standby Database
This case is created, operated and followed the steps from oracle online help documentation.
The configuration of the two sites server:
Primary Database:
[roo...
分类:
数据库技术 时间:
2014-06-30 19:38:09
收藏:
0 评论:
0 赞:
0 阅读:
487
前言:随着内网linux服务器越来越多,在每台服务器上安装软件,都要先把安装盘上传上去,在配置本地yum服务,即麻烦又费时。可以在内网的一台linux服务器上安装yum服务,然后其他服务器直接修改repo文件使用yum服务就可以了。安装步骤如下:...
分类:
其他 时间:
2014-06-30 16:28:19
收藏:
0 评论:
0 赞:
0 阅读:
398
一、KVC与KVO
*“KVC”:key value Coding(键值编码)
*目的:间接的修改或获取对象的属性,降低程序(类与类)之间的耦合度.
*“KVO”:key value Observer(键值观察),观察者模式.(用于模型变化用的多)
*目的:通常用于观察某个对象的某个属性发生变化时,及时做出相应.
二、KVC的使用方式
KVC被称为i...
分类:
移动平台 时间:
2014-06-30 20:11:00
收藏:
0 评论:
0 赞:
0 阅读:
401
题目描述:
在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。
分析:
首先选择数组中右上角的数字。如果该数字等于要查找的数字,查找过程结束;如果该数字大于要查找的数字,剔除这个数字所在的列;如果该数字小于要查找的数字,剔除这个数字所在的行。依次类推,直到查找范围为空。...
分类:
其他 时间:
2014-06-30 20:19:13
收藏:
0 评论:
0 赞:
0 阅读:
390
电子邮件发送协议是一种基于“推”的协议,主要包括SMTP;邮件接收协议则是一种基于“拉”的协议,主要包括POP协议和IMAP协议,在正式介绍这些协议之前,我们先给出邮件收发的体系结构:...
分类:
其他 时间:
2014-06-30 18:50:58
收藏:
0 评论:
0 赞:
0 阅读:
944
简单,二分法,但是在oj上交的时候会有精度的限制,所以只能把数扩得大一点,而且在扩的时候为防止尾数会自动生成一些非零数,所以还是自己吧扩到的位置设置为0,还有输出时因为%.2lf会自己有4设5入,所以可以自己算出小数点后两位的数值,在输出,保证要求的精度
#include
#include
#include
#define MAX 10010
using namespace std;
l...
分类:
其他 时间:
2014-06-30 19:03:13
收藏:
0 评论:
0 赞:
0 阅读:
334
在Eclipse使用习惯了自动编译的兄弟们,刚迁移到Android Studio,肯定也很怀念这功能,自动编译意味着每次运行都能缩短很多时间。
Android Studio里面其实也是有自动编译功能的,不过个人觉得还是不如Eclipse好使。具体设置看下图:
把图中的checkbox的勾点上即可。...
分类:
移动平台 时间:
2014-06-30 16:55:54
收藏:
0 评论:
0 赞:
0 阅读:
382
文章地址:http://ryantang.me/blog/2014/06/29/efficient-life/...
分类:
其他 时间:
2014-06-30 19:02:13
收藏:
0 评论:
0 赞:
0 阅读:
328
编译 windows上编译lua源码
cl /MD /O2 /W3 /c /DLUA_BUILD_AS_DLL *.c
del *.o
ren lua.obj lua.o
ren luac.obj luac.o
ren print.obj print.o
link /DLL /IMPLIB:lua5.1.lib /OUT:lua5.1.dll *.obj
link /OUT:lua.ex...
分类:
其他 时间:
2014-06-30 18:19:09
收藏:
0 评论:
0 赞:
0 阅读:
276
使用静态链接的方式
#include
#include
#include
#ifdef __cplusplus
extern "C" {
#endif
#include "lua/include/lua.h"
#include "lua/include/lauxlib.h"
#include "lua/include/lualib.h"
#pragma comment (li...
分类:
其他 时间:
2014-06-30 18:29:17
收藏:
0 评论:
0 赞:
0 阅读:
296
题目
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.
方法
publi...
分类:
其他 时间:
2014-06-30 19:37:06
收藏:
0 评论:
0 赞:
0 阅读:
306
怎样才可以获取IE里面的代理服务器的账号密码呢?关键在于控制面板->用户->凭证管理器,IE设置的代理服务器账号密码都在这里管理。...
分类:
编程语言 时间:
2014-06-30 19:46:24
收藏:
0 评论:
0 赞:
0 阅读:
806
加载超大效果图导致内存不足(GC/ANR)
浅谈ANR如何分析解决ANR...
分类:
其他 时间:
2014-06-30 18:28:15
收藏:
0 评论:
0 赞:
0 阅读:
557