public class Test_1 {public static void main(String[] args) {System.out.println(0.06+0.01);System.out.println(1.0-0.42);System.out.println(4.015*100);...
分类:
其他好文 时间:
2015-06-24 18:35:33
阅读次数:
160
/// /// 在指定的字符串列表CnStr中检索符合拼音索引字符串/// /// 汉字字符串/// 相对应的汉语拼音首字母串public static string GetSpellCode(string CnStr) { string strTemp=""; int iLen=CnStr.L.....
luabind导出字符串 不能导出char* 会有问题 应该是字符串连接的时候出错了 static _TCHAR* pRetChar = new _TCHAR[10]; memcpy(pRetChar,szName,10); return NetE::wtoutf8(pRetChar); //WC....
分类:
其他好文 时间:
2015-06-24 18:25:28
阅读次数:
110
procedure TForm1.BitBtn1Click(Sender: TObject);var StringStream : TStringStream; FSize : integer; FileData : string; i : integer; DataStr : string; ms...
分类:
其他好文 时间:
2015-06-24 18:24:49
阅读次数:
140
题目链接:http://codeforces.com/problemset/problem/535/A#include
#include
using namespace std;int main()
{
string s1[10]={"zero","one","two","three","four","five","six","seven","eigh...
分类:
其他好文 时间:
2015-06-24 16:34:49
阅读次数:
111
1. reverse /**
* @Description: reverse a string.
* @param str the String to reverse, may be null
* @return reversedStr the reversed String, null if null String input
*/
publi...
分类:
其他好文 时间:
2015-06-24 16:32:37
阅读次数:
129
String.format()【示例详解】
整理者:Vashon
前言:
String.format 作为文本处理工具,为我们提供强大而丰富的字符串格式化功能,为了不止步于简单调用 String.format("Hello
%s", "Vashon");
,下面将笔记整理并记录下来。
方法重载:
// 使用当前本地区域对象(Locale.getDefau...
分类:
其他好文 时间:
2015-06-24 16:23:15
阅读次数:
148
#58 Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist,...
分类:
其他好文 时间:
2015-06-24 16:22:21
阅读次数:
141
HttpWebRequest使用证书请求//是否使用证书 if (isUseCert) { string path = HttpContext.Current.Request.PhysicalApplicationPath; X509Certificate2 cert = new X509Certi...
分类:
Web程序 时间:
2015-06-24 16:19:52
阅读次数:
434
今天在C#中碰到了一个问题,需要将double转换成字符串显示,要求保留小数位。在网上查询了一下相关的文章具体如下:double temp=3.1415926;(F)Fixed point:string str1=temp.toString("f1");//保留一位小数 四舍五入 结果:3.1(F)...