using System; using System.Collections.Generic; using System.Linq; using System.Text;namespace AnyConvertx2x { /// /// 数字进制转换类 /// public class AnyC.....
分类:
其他好文 时间:
2014-08-14 08:10:38
阅读次数:
232
在3D图形学中,最常用的旋转表示方法便是四元数和欧拉角,比起矩阵来具有节省存储空间和方便插值的优点。本文主要归纳了两种表达方式的转换,计算公式采用3D笛卡尔坐标系: ...
分类:
其他好文 时间:
2014-08-13 18:02:36
阅读次数:
279
<title>汉字和Unicode编码互转</title> <script Language=Javascript> var classObj= ? ? ?{ ? ? ? ?ToUnicode:function(str)? ? ? ? ?{ ? ? ? ? return escape(str).replace(/%/g,"\\").toLowe...
分类:
Web程序 时间:
2014-08-13 15:26:26
阅读次数:
276
Class NSClassFromString (NSString *aClassName);NSString * NSStringFromClass (Class aClass);NSString * NSStringFromProtocol (Protocol *proto);Protocol ...
分类:
其他好文 时间:
2014-08-13 03:32:15
阅读次数:
265
//?int2byte.cpp?:?定义控制台应用程序的入口点。
//
#include?"stdafx.h"
#include?<Windows.h>
/*
#define?MAKEWORD(a,?b) ((WORD)(((BYTE)(((DWORD_PTR)(a)) & 0xff))?|?((WORD)((BYTE)(...
分类:
其他好文 时间:
2014-08-12 22:20:58
阅读次数:
417
static final SimpleDateFormat DATETIME_SEC_STR = new SimpleDateFormat("yyyyMMddHHmmss");1.Date转LongLong currStartTime = Long.valueOf(DATETIME_SEC_STR....
分类:
其他好文 时间:
2014-08-12 13:23:44
阅读次数:
184
1 JSON包含对象和数组,对应于JAVA中的JSONObject,JSONArray 2 String 转JSON对象 JSONObject.fromObject("String"); String 转JSON数组 JSONArray.fromObject("Strin...
分类:
编程语言 时间:
2014-08-11 21:13:22
阅读次数:
358
staticstd::wstringMBytesToWString(constchar*lpcszString);staticstd::stringWStringToMBytes(constwchar_t*lpwcszWString);staticstd::wstringUTF8ToWStrin.....
分类:
编程语言 时间:
2014-08-11 00:15:30
阅读次数:
446
参考来源:http://blog.csdn.net/flying8127/article/details/1598521在原来原基础上,将代码整理,并加强安全性. 并按照WindowsAPI设计, 添加输出缓冲长度探测功能当OutUTFString为NULL时, 可以进行输出的UTF8字符串长度探测...
分类:
其他好文 时间:
2014-08-11 00:11:41
阅读次数:
306
(1)我的错误程序:#include#includeusing namespace std;int ZhuanHuan(char);int main(){ char a[100]; cout>a; for(int i=0;i='a'&&index='A'&&index#includ...
分类:
其他好文 时间:
2014-08-09 18:27:58
阅读次数:
217