摘要:
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 阅读全文
摘要:
double d1 = 1; double dSum = 1000; string persent = (d1 / dSum).ToString("0.0%"); Console.WriteLine(persent); 阅读全文
摘要:
char[] strName = new char[12]; strName = "ganquanfu".ToCharArray(); Console.WriteLine(strName); 阅读全文
摘要:
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){}} 阅读全文
摘要:
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 阅读全文
摘要:
fileName="投资团队ID"+cboTeamID.Text.Trim();fileName+="开始时间"+string.Format("{0:yyyyMMddHHmmss}",dtpTeamStart.Value); fileName+="结束时间"+string.Format("{0:yyyyMMddHHmmss}",dtpTeamEnd.Value); 阅读全文