上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 63 下一页
摘要: #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 阅读全文
posted @ 2013-06-02 23:08 Predator 阅读(444) 评论(0) 推荐(0) 编辑
摘要: int week = (int)WEEK.TUESDAY; Console.WriteLine(week);//输出10 Console.Read(); public enum WEEK { MONDAY = 1, TUESDAY=10 } 阅读全文
posted @ 2013-05-31 21:23 Predator 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-05-31 21:22 Predator 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 63 下一页