- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 C函数和C++函数相互调用
test.cint call_MyMath_sum (int,int); int sum(inta , intb) { return call_MyMath_sum(a,b);}main.cpp#include using namespace std; extern"C" { int sum(int, int); } class MyMath
2013-04-27 11:45:25 1020
原创 [php5.2.4] explode函数不能按照"\r\n"切割字符串
php 版本 5.2.4现有一txt文件,格式如下:file.txt12345要将其内容按行分割存入数据$array中执行代码:$fileContent = trim(file_get_contents('file.txt');$array = explode("\r\n", $fileContent);并未达到预想的效果$array =>
2013-04-19 18:55:37 7140 1
原创 php 5.2.4 iconv函数TRANSLIT 有时不靠谱
php 版本 5.2.4问题:文件字符串转码时按字节截断不当比如$str = “公司”; //默认以UTF-8编码$str = Simple_Util_String::msubstr($str, 4); // 按字节截取前4个字节,原字符串有6个字节$str .= “adfadsfasdfadsfasdf”;
2013-04-03 18:58:36 1930
checkinstall-1.6.2-CentOS_5.5.x86_64.rpm
2011-03-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人