1.1Implement an algorithm to determine if a
string has all unique characters. What if you cannot use additional data
structures?字符串问题,需要先确定是不是只有ASCII码...
分类:
其他好文 时间:
2014-06-11 12:27:53
阅读次数:
247
C++有4种类型转换,reinterpret_cast, static_cast,
dynamic_cast 和 const_castreinterpret_castreinterpret_cast
可以将一个指针转换为任意其它类型的指针或int,或反之亦可。可以在互不相关的类之间进行指针转换,它只...
分类:
编程语言 时间:
2014-06-11 07:17:02
阅读次数:
264
问题: cannot find -lnlcollect2: error: ld returned 1 exit statusmake: *** [wpa_supplicant] 错误 1解决方法:[fulinux@ubuntu wpa_supplicant]$ sudo apt-get install libnl-dev libssl-dev...
分类:
其他好文 时间:
2014-06-10 13:35:36
阅读次数:
262
安装完Nginx之后,启动报错。[vagrant@localhost sbin]$ sudo
./nginx./nginx: error while loading shared libraries: libpcre.so.1: cannot open
shared object file: No ...
分类:
其他好文 时间:
2014-06-08 19:01:47
阅读次数:
294
今天要写一个联系人搜索算法。百度了下, 在code4App中找到相关代码。但是自己跑了下, 发现报错。错误内容如下:"Cast from pointer to smaller type 'int' loses information” 从错误内容我们也能看出, 错误出在'int'这里了。而那份代码也比较早的, 在Xcode5.1之后, 要用uintptr_t来替代int。把错误语句处的int全换成...
分类:
移动开发 时间:
2014-06-08 18:28:25
阅读次数:
429
设置字体出错:txt.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/luculent"));
然后发现,竟然是因为自己没有加上后缀,改成下面这样就好了
txt.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/luculent.ttf"));
出这个错误了先看看名字...
分类:
编程语言 时间:
2014-06-08 15:03:27
阅读次数:
298
在 SQL Server
中Cast和Convert都是将表达式由一种数据类型转换为另一种数据类型。由于SQL
Server提供两种功能,因此应该选择哪种功能或应该在哪种情况下使用该功能就很容易让人困惑了。CONVERT是专对SQL
Server使用的,使日期与时间值,小数之间转换具有更宽的灵活性。...
分类:
数据库 时间:
2014-06-08 06:28:24
阅读次数:
218
在vm下redhat5下安装oracle 11g后,登录sqlplus 报:
sqlplus: error while loading shared libraries: /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc:...
分类:
数据库 时间:
2014-06-07 12:00:29
阅读次数:
303
动态 变量类型在运行期间确定下来静态 在编译期确定下来强类型 类型不会发生自动变换,弱类型
类型会自动变,比如double+int -> double类型安全 类型对数据访问有严格控制类型不安全 ...Well-typed programs
cannot "go wrong" ...
分类:
编程语言 时间:
2014-06-06 15:36:16
阅读次数:
238
由于项目的软件版本会逐渐递增,原来的测试脚本在新版本上执行的时候会出现错误1.“The
"App(1.0.1.0)-T(0.0.0." Dialog object was not found in the Object
Repository.”错误2.“Cannot identify the obj...
分类:
其他好文 时间:
2014-06-06 07:28:11
阅读次数:
227