摘要: string strDT = "20130228223022"; string strDTTem = string.Format("{0}/{1}/{2} {3}:{4}:{5}", strDT.Substring(0, 4), strDT.Substring(4, 2), strDT.Substring(6, 2), strDT.Substring(8, 2), strDT.Substring(10, 2), strDT.Substring(12, 2) ); DateTime dt = DateTime.Parse(strDTTem); // Dat 阅读全文
posted @ 2013-05-30 21:43 Predator 阅读(110) 评论(0) 推荐(0) 编辑
摘要: double d1 = 1; double dSum = 1000; string persent = (d1 / dSum).ToString("0.0%"); Console.WriteLine(persent); 阅读全文
posted @ 2013-05-30 21:42 Predator 阅读(237) 评论(0) 推荐(0) 编辑
摘要: char[] strName = new char[12]; strName = "ganquanfu".ToCharArray(); Console.WriteLine(strName); 阅读全文
posted @ 2013-05-30 21:41 Predator 阅读(349) 评论(0) 推荐(0) 编辑
摘要: Program.h头文件中的内容#include<iostream>using namespace std;#include "Program.h"int main(){try{ int sum;cin>>sum;cout<<"HelloWorld!"<<'\t'<<sum;int test;cin>>test;return 0;}catch(exception e){}} 阅读全文
posted @ 2013-05-30 21:40 Predator 阅读(205) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SimulationTool{ struct PESSelectParam //成交记录的Key参数 { DateTime strStarTime; //开始时间 DateTime strEndTime; //结束时间 string strInvestGroupID; //投资团队ID List<string> pstrStrategyList; //策略名字列表 int nStrategyCount 阅读全文
posted @ 2013-05-30 21:39 Predator 阅读(291) 评论(0) 推荐(0) 编辑
摘要: fileName="投资团队ID"+cboTeamID.Text.Trim();fileName+="开始时间"+string.Format("{0:yyyyMMddHHmmss}",dtpTeamStart.Value); fileName+="结束时间"+string.Format("{0:yyyyMMddHHmmss}",dtpTeamEnd.Value); 阅读全文
posted @ 2013-05-30 21:38 Predator 阅读(537) 评论(0) 推荐(0) 编辑