摘要:using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace test { /// /// Description of MainForm. /// public partial class MainForm : Form { ...
阅读全文
11 2016 档案
摘要:using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace test { /// /// Description of MainForm. /// public partial class MainForm : Form { ...
阅读全文
摘要:一、数组内存释放问题 数组内存的释放可以按照如下语句实现: 其中最后一句:aa=null就是释放内存的。 二、关于动态数组 动态数组可以按以下方式申明: 然后在任何要使用该数组的地方,都可以重新定义数组的大小:
阅读全文
摘要:C 货币 2.5.ToString("C") ¥2.50 D 十进制数 25.ToString("D5") 00025 E 科学型 25000.ToString("E") 2.500000E+005 F 固定点 25.ToString("F2") 25.00 G 常规 2.5.ToString("G
阅读全文
摘要:using System; using System.Text; using System.Text.RegularExpressions; namespace test { class Program { public static void Main(string[] args) { string pp="1063792.4 2764405.825 5.464413E...
阅读全文
摘要:笔者最近需要快速查询日志文件,文件大小在4G以上。 需求如下: 1.读取4G左右大小的文件中的指定行,程序运行占用内存不超过500M。 2.希望查询1G以内容,能控制在20s左右. 刚开始觉得这个应该不难.研究一天之后,发现这个需要使用内存映射技术。 查阅了相关资料之后 https://msdn.m
阅读全文
摘要:procedure TForm23.Button4Click(Sender: TObject); var pstr:Pchar; mestr,Str1:string; FS:TFilestream; meint,PoStr,I,LenStr:integer; Fpos:Int64; TT,IsDay:Boolean; Liststr:TStringList; begin if not Sel...
阅读全文
|