摘要:
#include "TestMain.h"void ShowDatas(int len);int main(){cout<<"请输入创建数组的长度"<<endl;int length;cin>>length;ShowDatas(length);int end;cin>>end;return 0;}void ShowDatas(int len){int *pArray=NULL;pArray=new int[len];for(int i=0;i<len;i++)pArray[i]=i;for(int j 阅读全文
摘要:
int week = (int)WEEK.TUESDAY; Console.WriteLine(week);//输出10 Console.Read(); public enum WEEK { MONDAY = 1, TUESDAY=10 } 阅读全文
摘要:
private static void GetName(Name name) { name = new Name("gan", "fu"); } public class Name { public string FirstName { get; set; } public string LastName { get; set; } public Name() { } public Name(string firstName,string lastName) { this.FirstName = firstName; this.LastName = la 阅读全文
摘要:
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 阅读全文