为一个简单的字符串转换提供了一种基于图深度优先遍历的方法,是一种新的思路。ZigZag Conversion,原题链接:https://leetcode.com/problems/zigzag-conversion/...
分类:
其他好文 时间:
2015-08-17 10:13:00
阅读次数:
239
poj 50题拍照合影留念
NUMBER BASE CONVERSION
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 4620
Accepted: 2115
Description
Write a program to convert numbe...
分类:
其他好文 时间:
2015-08-16 18:22:47
阅读次数:
182
C++类型转换分为:隐式类型转换和显式类型转换
隐式转换
包括以下几种情况:
1、算术转换(Arithmetic conversion) : 在混合类型的算术表达式中, 最宽的数据类型成为目标转换类型。
2、一种类型表达式赋值给另一种类型的对象:目标类型是被赋值对象的类型
3、将一个表达式作为实参传递给函数调用,此时形参和实参类型不一致:目标转换类型为形参的类型
4、从一个函数返回...
分类:
编程语言 时间:
2015-08-15 12:01:50
阅读次数:
210
大纲:1.词汇1.词汇carbohydrate[kɑ?b?'ha?dre?t]an essential structural component of living cells and source of energy for animals; includes simple sugars with...
分类:
其他好文 时间:
2015-08-14 18:36:26
阅读次数:
356
今天在自己实现strlen函数的时候碰到碰到了一个很有意思的warning:warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] 1 #include 2 3 int strlen(cha.....
分类:
其他好文 时间:
2015-08-14 00:53:52
阅读次数:
237
DescriptionThe world famous scientist Innokentiy almost finished the creation of perpetuum mobile. Its main part is the energy generator which allows ...
分类:
其他好文 时间:
2015-08-13 11:50:08
阅读次数:
123
iBeacon的工作原理是基于Bluetooth Low Energy(BLE)低功耗蓝牙传输技术,iBeacon基站不断向四周发送蓝牙信号,当智能设备进入设定区域时,就能够收到信号。只要满足iBeacon技术标准的都可以使用,所以Android也能够支持iBeacon。Google在Android4.3中支持BLE技术
定位一直是非常关键的功能。通过iBeacon基站的部署能够实现室内导航...
分类:
移动开发 时间:
2015-08-10 22:24:51
阅读次数:
972
The world famous scientist Innokentiy almost finished the creation of perpetuum mobile. Its main part is the energy generator which allows the other m...
分类:
其他好文 时间:
2015-08-09 20:28:58
阅读次数:
103
当一个app的功能越来越复杂,代码量越来越多,也许有一天便会突然遇到下列现象:1. 生成的apk在2.3以前的机器无法安装,提示INSTALL_FAILED_DEXOPT2. 方法数量过多,编译时出错,提示:Conversion to Dalvik format failed:Unable to e...
分类:
其他好文 时间:
2015-08-09 20:15:47
阅读次数:
290
隐式转换(implicit conversion)short a=2000;int b;b=a;short是两字节,int是四字节,由short型转成int型是宽化转换(bit位数增多),编译器没有warning,如下图所示。宽化转换(如char到int,int到long long,int到floa...
分类:
其他好文 时间:
2015-08-08 06:30:52
阅读次数:
151